Open Etomyutikos opened 7 years ago
The strings.Index func added to the func map in environ/funcs.go overwrites the text/template index func, making some operations impossible.
strings.Index
environ/funcs.go
text/template
index
Hugo uses namespaces for functions. I think this is the right fix. Implementation looks like this:
https://play.golang.org/p/TIV-2BEO1o
The
strings.Index
func added to the func map inenviron/funcs.go
overwrites thetext/template
index
func, making some operations impossible.