Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesParams lower case issue with .GetPage #5946
Comments
This comment has been minimized.
This comment has been minimized.
I suspect this must be "something else", e.g. you're not getting the page you think you do, a conflicting session? Do you get any output with |
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
This comment has been minimized.
This comment has been minimized.
I've tested it with Hugo v0.59.1 and it is still an issuel. Sorry, for not answering earlier. Somehow missed your question @bep:
Yes, I'm getting the right page and I do get a result for The original issue was a bit misleading because it doesn't matter if it is headless or not (I changed that). It is a problem with |
For normal pages something like
.Params.myParam
works (it used to be an issue but got fixed in #2590 and #2630).But for
.Site.GetPage
it does not work. This is how I use it - mostly with headless pages:Markdown in "content/settings/general/index.md"
Template in "layouts/index.html"
The last line does not return any value while
{{ $settingsPage.Params.myparam }}
does return the correct value.