Hi I am very new to Hugo. I am trying to get my navigation links to render in my navgation bar by using config.toml to store my data. I tried following this blog post about drop down menus but I could not figure it out.
Do you have your code in a repo somewhere we can have a look at? It is easier to help if we can replicate what you are trying to do. Have a read about Requesting Help
It’s still not working. I don’t think its recognizing .Site.Menus.nav variable. I tried changing line 17 to an uppercase N and nothing happened. Then I changed lines 16 - 18 to
{{ range .Site.Menus.nav}}
{{ . }}
{{end}}
to see if something appears and nothing is appearing in the navigation bar.
@pointyfar I was not able to configure the menu using .toml. I was about to do it with a .yml file in the data folder. The way that map[] nested the data for my menu was odd.