2017-04-24 09:13:17 +01:00
|
|
|
<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
|
2017-07-10 09:50:49 +01:00
|
|
|
<h1><a href="/" class="navbar-brand">{{ title .Site.Title }}</a></h1>
|
2017-04-20 22:00:16 +01:00
|
|
|
<nav id="nav">
|
|
|
|
<ul>
|
2017-06-13 09:30:46 +01:00
|
|
|
{{ $home := .Site.GetPage "home" }}
|
2017-04-22 23:24:13 +01:00
|
|
|
{{ range where .Site.Pages.ByTitle "Kind" "section" }}
|
2017-06-13 09:30:46 +01:00
|
|
|
{{ if eq .Parent $home }}
|
|
|
|
{{ $valid_children := where .Site.Pages.ByTitle ".Parent" "!=" nil }}
|
|
|
|
{{ $children := where $valid_children ".Parent.UniqueID" .UniqueID }}
|
|
|
|
<li class="top-level">
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
{{ if $children }}
|
|
|
|
<ul>
|
|
|
|
{{ range first .Site.Params.nav_items $children }}
|
2017-07-09 19:39:03 +01:00
|
|
|
<li>
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages }}
|
|
|
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-06-13 09:30:46 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if ge (len $children) .Site.Params.nav_items }}
|
|
|
|
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2017-04-22 23:24:13 +01:00
|
|
|
{{ end }}
|
2017-04-23 11:40:15 +01:00
|
|
|
|
2017-04-22 23:24:13 +01:00
|
|
|
{{ range where .Site.Pages.ByTitle "Kind" "page" }}
|
2017-04-23 11:40:15 +01:00
|
|
|
{{ if eq .Section "" }}
|
2017-05-22 09:40:47 +01:00
|
|
|
<li class="top-level"><a href="{{ .Permalink }}">{{ title .LinkTitle }}</a></li>
|
2017-04-22 23:24:13 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2017-07-12 21:49:23 +01:00
|
|
|
<li class="top-level"><a class="show-mobile" href="/">Home</a></li>
|
2017-04-20 22:00:16 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|