gnorm icon indicating copy to clipboard operation
gnorm copied to clipboard

'index' func overwrites default 'index'

Open Etomyutikos opened this issue 6 years ago • 1 comments

The strings.Index func added to the func map in environ/funcs.go overwrites the text/template index func, making some operations impossible.

Etomyutikos avatar Oct 31 '17 19:10 Etomyutikos

Hugo uses namespaces for functions. I think this is the right fix. Implementation looks like this:

https://play.golang.org/p/TIV-2BEO1o

natefinch avatar Nov 01 '17 02:11 natefinch