How can I get echoParam to work?


I am trying to use the echoParam function, but it never prints anything. The variables I’m trying to reference are set.

I’m following the code example in the docs, with something like:

{{ echoParam .Site.Params "languageCode" }}

It doesn’t seem to matter where I call the function, either in single.html, baseof.html or a partial, it never prints a value.

Is there something I’m missing?

Thanks so much in advance!

EchoParam sounds like a powerful little function but I can’t get it to work either. Can anyone help?

GH issue created. Thanks for reporting this.


Also, see the .Param func.