about summary refs log tree commit diff
path: root/layouts/partials/header.html
blob: 8364ba8c5fcf0d263fd88640a794670ac778eb2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<nav>
	{{ $current := .RelPermalink }}
	{{ if eq $current .Site.Home.RelPermalink }}
	<a class="homepage" aria-current="page">{{ .Site.Title }}</a>
	{{ else }}
	<a class="homepage" href="{{ .Site.Home.RelPermalink }}" >{{ .Site.Title }}</a>
	{{ end}}

	{{ range .Site.Menus.main }}
	{{ if eq $current .URL }}
		<a aria-current="page">{{ .Title }}</a>
	{{ else }}
	<a href="{{ .URL }}">{{ .Title }}</a>
	{{ end }}
	{{ end }}
</nav>
{{ partial "header-extra.html" . }}