simplified the navigation even more; hopefully uncluttered the links and using standard heading sizes

This commit is contained in:
Vrifox 2021-03-07 16:06:50 +01:00
parent 9bfbd290b8
commit 35f14736db
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 5 additions and 18 deletions

View file

@ -1,19 +1,11 @@
{{- $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>