I puzzled here: in single.html I can access _index.md frontmatter using .Parent.Params.some-field-name but if I use that in a partial it generates a nil pointer
Obviously I am missing something here but what?
Hugo 0.68.3
I puzzled here: in single.html I can access _index.md frontmatter using .Parent.Params.some-field-name but if I use that in a partial it generates a nil pointer
Obviously I am missing something here but what?
Hugo 0.68.3
I’m totally guessing here, but you either 1) did not pass the page into the partial as an argument 2) use the partial ALSO on the home page where .Parent is nil
Not sure what you mean by “did not pass the page into the partial as an argument”.
I try to read the frontmatter from _index in a partial called header.html which is called by baseof.html as {{ partial “header.html” . }}
Basically, I would like to use the frontmatter in _index.html as a default so I do not need to repeat it again in the frontmatter of each of the list items.