Hi all,
I’m working on a multilingual theme for Hugo and running into one issue. When my templates are built for the first time, I can see the Params values configuration by printing out the .Site.Params
object, but I’m unable to use the value by reading variable e.g. .Site.Params.footer.enable
.
Minimal code example is posted as gist here.
The strange thing is if I run hugo server
, it’ll not able to access the value above for first run, and then if I change my config.toml file by just entering a new line and save. The value is read and everything works correctly.
Please help if you have any idea.
Thanks,
Tom