Hello, I’ve tried to use template functions, but do I need enable something for templating functions? Looks like templating doesn’t work for me.
like for example {{ "cat" | pluralize }} doesn’t work for me, it just prints {{ “cat” | pluralize }}
I’d like use lately added emojify functions, e.g. {{ "I :heart: Hugo" | emojify }} but doesn’t work for me, just prints this to text.
I have Hugo Static Site Generator v0.16-DEV BuildDate: 2016-03-13T08:10:03+01:00
Not sure how you built this, but if you don’t see the emojis it must mean that you are not on the current version. So du a go get -u or whatever and try to build again.
That doesn’t help. You can try to build Hugo with make:
make
go build -ldflags "-X github.com/spf13/hugo/hugolib.CommitHash=`git rev-parse --short HEAD 2>/dev/null` -X github.com/spf13/hugo/hugolib.BuildDate=`date +%FT%T%z`" -o hugo main.go
➜ hugo git:(master) hugo version
Hugo Static Site Generator v0.16-DEV-3A2A4C3 BuildDate: 2016-03-15T00:00:14+01:00
This is strange. Anyway, looks like this version should have emoji support? or how do I build last one? Or this looks like some go cache?
Any further debug steps?
wao@astrid~/L/g/s/g/s/hugo> make
go build -ldflags “-X github.com/spf13/hugo/hugolib.CommitHash=git rev-parse --short HEAD 2>/dev/null -X github.com/spf13/hugo/hugolib.BuildDate=date +%FT%T%z” -o hugo main.go
wao@astrid~/L/g/s/g/s/hugo> hugo version
Hugo Static Site Generator v0.16-DEV BuildDate: 2016-03-13T08:10:03+01:00
wao@astrid~/L/g/s/g/s/hugo> git rev-parse --short HEAD
3a2a4c3
FWIW: I downloaded the OSX binary a while ago (Hugo Static Site Generator v0.16 BuildDate: 2016-06-06T14:29:38+02:00) but didn’t work, Pulled out a few hairs trying to get the elusive emoji’s to manifest.
Building Hugo Static Site Generator v0.17-DEV BuildDate: 2016-08-30T23:36:15+02:00 made them appear.