I setup the config.yaml
to have the menu weights like this:
menu:
main:
- weight: 0
identifier: blog
name: Blog
url: "/blog"
# ...
- weight: 4
identifier: contact
name: Contact
url: "/#contact"
And on the layout for the navbar menu, I have this in the range:
{{ range .Site.Menus.main.ByWeight }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
But when it gets rendered, it didn’t put the menu items in order as if it’s ignoring the weights I gave it. Is there anything I am missing either in the menu config or the templating?