New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Params lower case issue with .GetPage #5946
Comments
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 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. |
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 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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.The text was updated successfully, but these errors were encountered: