18 lines
490 B
HTML
18 lines
490 B
HTML
<div class="header">
|
|
<a class="title" href="{{ .Site.Home.URL }}">{{ .Site.Title }}</a>
|
|
{{- with .Site.Params.subtitle }}
|
|
<span class="description">{{ . }}</span>
|
|
{{- end }}
|
|
</div>
|
|
<nav class="nav nav-top">
|
|
<ul>
|
|
{{- $curr := . }}
|
|
{{- range .Site.Menus.main }}
|
|
{{- $selected := cond (or ($curr.IsMenuCurrent "main" .) ($curr.HasMenuCurrent "main" .)) " pure-menu-selected" "" }}
|
|
<li>
|
|
<a href="{{.URL}}">{{ .Name }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
</nav>
|