website/layouts/partials/nav.html

11 lines
298 B
HTML

{{- $currentPage := . -}}
<header class="main">
{{- range .Site.Menus.name }}
<h1><a href="{{ .URL }}">{{ .Name }}</a></h1>
{{- end }}
<nav>
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}
</nav>
</header>