I have this menu defined in config.toml
[menu]
[[menu.nav]]
identifier = "About"
name = "About"
pageref = "/about-us/"
weight = 6
[[menu.nav]]
identifier = "Privacy"
name = "Privacy"
pageref = "/privacy-policy/"
weight = 7
[[menu.nav]]
identifier = "Terms"
name = "Terms"
pageref = "/terms-of-service/"
weight = 8
[[menu.nav]]
identifier = "Contact"
name = "Contact"
pageref = "/contact/"
weight = 9
Called at the footer using this code
<nav class="footer-menu">
<ul>
{{ $currentPage := . }}
{{ range site.Menus.nav }}
{{ if $currentPage.IsMenuCurrent "nav" . }}
<li class="active">
<a href="{{ .URL }}">{{ .Name }} </a>
</li>
{{ else }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</nav>
However, the menu shows empty links as shown here. I have tried different examples in the URL, but anything inside /.../
is not rendered, but anything inside /.../...
/ is rendered. Using the latest version of Hugo and Go.