I have postURL = blog defined in the config file. I can print {{ .Site.Params.postURL }} and see blog come up on the page. However, I can’t seem to get it to work in an IN clause.
If I change it to “blog” it works fine. To test it out, I changed the second value going into slice to “project” as shown above and I can see posts from projects come up.
For some reason when I use the param from config as an input to slice it doesn’t like it. There are no errors. pages form projects come up but none from blog show up.
I have restarted hugo server and tested it as well.
Error: Error building site: failed to render pages: render of “home” failed: “c:\Hugo\sites\build-directory\layouts_default\list.html:152:35”: execute of template failed: template: _default\list.html:152:35: executing “main” at <where .Pages "sectio…>: error calling where: section isn’t a field of struct type *hugolib.Page