1
Fork 0
theorangeone.net-legacy/layouts/partials/navbar.html

29 lines
1 KiB
HTML
Raw Normal View History

<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
2017-04-23 12:31:42 +01:00
<h1><a href="/">{{ title .Site.Title }}</a></h1>
<nav id="nav">
<ul>
2017-04-22 23:24:13 +01:00
{{ range where .Site.Pages.ByTitle "Kind" "section" }}
<li>
2017-05-06 19:39:56 +01:00
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
2017-04-23 11:40:15 +01:00
{{ if .Pages }}
<ul>
2017-05-08 20:53:49 +01:00
{{ range first .Site.Params.nav_items (where .Pages.ByDate "Params.show_in_nav" "!=" "false") }}
2017-04-24 09:11:36 +01:00
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
2017-04-23 11:40:15 +01:00
{{ end }}
2017-05-07 18:43:04 +01:00
{{ if ge (len .Pages) .Site.Params.nav_items }}
2017-05-06 21:36:20 +01:00
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
{{ end }}
2017-04-23 11:40:15 +01:00
</ul>
{{ end }}
2017-04-22 23:24:13 +01:00
</li>
{{ 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-04-24 09:11:36 +01:00
<li><a href="{{ .Permalink }}">{{ title .LinkTitle }}</a></li>
2017-04-22 23:24:13 +01:00
{{ end }}
{{ end }}
</ul>
</nav>
</header>