about summary refs log tree commit diff
path: root/layouts/partials/header.html
blob: 58625fe3178d059992b97d48196b5f084bcec28e (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>