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