website/layouts/partials/nav.html
2021-06-13 12:38:02 +02:00

18 lines
467 B
HTML

{{- $currentPage := . }}
<header>
{{- range .Site.Menus.name }}
<h1> <a href="{{ .URL }}">{{ .Name }}</a> </h1>
{{- end }}
<nav>
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}
</nav>
<aside>
{{- if .IsTranslated }}
{{- range .Translations }}
<a href="{{ .Permalink }}">{{ .Lang }}</a>
{{- end }}
{{- end }}
</aside>
</header>