<nav class="nav-main">
	<ul>
		{{ $currentPage := . }}
		{{ range .Site.Menus.main }}
			{{ $active := or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier)}}
			<li class='{{ .Identifier }}{{ if $active }} active{{ end }}'>
				<a href="{{.URL}}">{{.Name}}</a>
			</li>
		{{ end }}
	</ul>
</nav>