DEV DISCUSSIONS ONLY ... refer to https://gohugo.io for docs and https://discourse.gohugo.io for support and usage questions
dependabot[bot] on go_modules
{{ range .Site.Menus.main }}
{{ if eq $.URL .Permalink }}
<li class="nav-item active">
{{ else }}
<li class="nav-item">
{{ end }}
<a class="nav-link" href="{{ .Permalink | absURL }}">{{ .Name }}</a>
</li>
{{ end }}
Using $.URL
for menu entry gives false warning, Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
It's a bug i guess.
.URL
but menuentry $.URL