Hey, I’m pretty new to Hugo so I’m not sure whether I’m missing something obvious.
For my Netlify site, I use the “css” parameter to change the css. The index page has the css parameter “index”, and another page has the css parameter “official”. Clicking a link from the index page to this other page does not change the css parameter to “index” as expected, so the “index” theme is shown instead of the “official” theme.
Reloading the page does update the frontmatter, however this is not a viable solution for me.
Not very clear. A hugo parameter can not change once set because it’s a static site generator. Did you mean to set up the initial value of a css custom property ?
Again, that doesn’t make any sense. Parameters are neither dynamic nor mutable. To know if {{ if eq .Params.css “official”}} works as a precondition to add code, put something very visible or just easy to check in the html source. Write aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa and if it’s not there, it’s a bug. If it’s not, then you don’t understand what your theme and code actually does.