I’m new to Hugo and Go. The current version of my web site is on github:
https://github.com/rs-aesi/my-company-website.git.
The main menu has 6 entries, three for a single page each`and two main menu items with nested menus, and one main menu item (“Blog”) with one post in the development version.; the latter three menu items don’t display properly.
Because I don’t know Go I don’t fully understand …/layouts/partial/menu.html:
<nav class="nav">
{{ $currentPage := . }}
<ul class="menu">
{{ range .Site.Menus.main }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<span>{{ .Name }}</span>
{{ if .HasChildren }}
<span class="drop-icon" for="{{ .Name }}">▾</span>
<ul class="sub-menu">
{{ range .Children }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<span>{{ .Name }}</span>
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
</nav>
I need to learn where the nested menu errors are so I can do them correctly now and in the future.
Thanks in advance,
Rich