website/themes/datacoop2020/layouts/partials/nav.html
Benjamin Bach e939f07c03
All checks were successful
continuous-integration/drone/pr Build is passing
Mark current page active in menu
2022-11-12 00:17:57 +01:00

18 lines
426 B
HTML

<nav>
<ol>
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<li><a href="{{ .URL }}"{{ if (eq $currentPage.URL .URL) }} class="active"{{ end }}>{{ .Name }}</a></li>
{{ end }}
</ol>
<footer>
<ol>
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ol>
</footer>
</nav>