1
Fork 0
theorangeone.net-legacy/layouts/partials/nav_pages.html
Jake Howard 4540196dee
Use relative links where possible
So the dead link checker can check internal links
2018-02-04 13:08:48 +00:00

13 lines
444 B
HTML

{{ $home := .Site.GetPage "home" }}
{{ $sections := where (where .Site.Pages.ByTitle "Kind" "section") "Parent.UniqueID" $home.UniqueID }}
{{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
{{ $nav_pages := union $pages $sections }}
{{ range sort $nav_pages "LinkTitle" }}
<li class="nav-item">
<a href="{{ .RelPermalink }}" class="nav-link">
<code>~/{{ urlize .LinkTitle }}</code>
</a>
</li>
{{ end }}