website/layouts/partials/nav.html

19 lines
483 B
HTML
Raw Normal View History

{{- $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>
{{- if .IsTranslated }}
2021-06-13 12:38:02 +02:00
<aside>
{{- range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Params.languageName }}</a>
2021-06-13 12:38:02 +02:00
{{- end }}
</aside>
{{- end }}
</header>