19 lines
635 B
HTML
19 lines
635 B
HTML
{{- $currentPage := . }}
|
|
<header>
|
|
{{- range .Site.Menus.name }}
|
|
{{- if $currentPage.IsMenuCurrent "name" . }}
|
|
<h1> <a href="{{ .URL }}" class="active">{{ .Name }}</a> </h1>
|
|
{{- else }}
|
|
<h1> <a href="{{ .URL }}">{{ .Name }}</a> </h1>
|
|
{{- end }}
|
|
{{- end }}
|
|
<nav>
|
|
{{- range .Site.Menus.main }}
|
|
{{- if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) -}}
|
|
<a href="{{ .URL }}" class="active">{{ .Name }}</a>
|
|
{{- else }}
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{- end}}
|
|
{{- end }}
|
|
</nav>
|
|
</header>
|