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

19 lines
499 B
HTML
Raw Normal View History

<nav>
<ol>
2022-11-11 23:17:57 +00:00
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
{{ $atURL := absURL $currentPage.URL }}
{{ $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>