This commit is contained in:
Halfdan 2022-11-15 18:19:30 +01:00
commit ff950c95ee

View file

@ -2,7 +2,7 @@
<ol>
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<li><a href="{{ .URL }}" class="{{ if $currentPage.IsMenuCurrent "nav" . }}active{{ end }}">{{ .Name }}</a></li>
<li><a href="{{ .URL }}"{{ if (eq $currentPage.URL .URL) }} class="active"{{ end }}>{{ .Name }}</a></li>
{{ end }}
</ol>