simplified the navigation even more; hopefully uncluttered the links and using standard heading sizes
This commit is contained in:
parent
9bfbd290b8
commit
35f14736db
2 changed files with 5 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue