<nav> <ol> {{ $currentPage := . }} {{ range .Site.Menus.nav }} {{ $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> {{ range $.Site.Home.AllTranslations }} <li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li> {{ end }} </ol> </footer> </nav>