-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
error calling Menus: cannot convert <nil> to maps.Params #8825
Comments
I have added #8830 which should remove the error, but even if I think that solution is sound enough (treat nil Params as empty Params), I'm curious as to why ... This is a |
Actually I found the culprit... I had left something like this in one of the content files (an empty params key on a menus map): titlte: ...
menus:
main:
parent: journal
weight: 2
params: It did not break under 85 hence me not noticing... |
I suspected the above, so I tried to create a failing test for it ... In TOML, but ah, YAML decodes empty maps to nil. How liberating. |
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes but not on 85.0, might have something to do with cascade in config.
I'm leaving this here, if this message does not speak by itself, I'll try and share more and reproduce the error on a simple project (it's currently happening on a rather complex one).
A simple
{{ with site.Menus }}
is currently triggering this.The text was updated successfully, but these errors were encountered: