website/themes/datacoop2020/layouts/partials/nav.html

19 lines
514 B
HTML
Raw Permalink Normal View History

<nav>
<ol>
2022-11-11 23:17:57 +00:00
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
2023-03-04 22:43:37 +00:00
{{ $atURL := absURL $currentPage.RelPermalink }}
{{ $compURL := absURL .URL }}
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a></li>
{{ end }}
</ol>
<footer>
<ol>
2022-11-11 23:17:57 +00:00
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
2022-11-11 23:17:57 +00:00
{{ end }}
</ol>
</footer>
</nav>