-
-
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
Custom menus not working after upgrading to v0.84 #8672
Comments
Content source here: https://github.com/anthonynelzin/metrozendodo.fr |
Could you try to rename the config from |
Unfortunately, it looks like it doesn’t work. |
Confirmed. With v0.83.1 this worked: [languages.en]
[[menus.foo]]
name = "foo-a"
url = "/foo-a/"
[[menus.foo]]
name = "foo-b"
url = "/foo-b/" With v0.84 you must do this instead: [languages.en]
[[languages.en.menus.foo]]
name = "foo-a"
url = "/foo-a/"
[[languages.en.menus.foo]]
name = "foo-b"
url = "/foo-b/" Minimal reproducible example: git clone --single-branch -b hugo-github-issue-8672 https://github.com/jmooring/hugo-testing hugo-github-issue-8672
cd hugo-github-issue-8672
hugo server |
This may have been the same problem: #8649 |
Hugo 0.84.0 has a bug where menus with custom entries won't get rendered. See gohugoio/hugo#8672 Signed-off-by: Tilman Vatteroth <[email protected]>
Hugo 0.84.0 has a bug where menus with custom entries won't get rendered. See gohugoio/hugo#8672 Signed-off-by: Tilman Vatteroth <[email protected]>
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. |
My custom menus broke after upgrading to Hugo v0.84. They’ve been working fine for years, I didn’t change a thing in my config:
Nor did I change a thing in my templates:
I know that v0.84 changed some things about the merging of params, but I don’t see how it could affect me. I tried to debug using
{{ printf "%#v" .Site.Menus.header }}
, but it simply returns nil. I’m at a loss of ideas.What version of Hugo are you using (
hugo version
)?hugo v0.84.0+extended darwin/arm64
Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered: