1
Fork 0

Use builtin to get normal pages

This commit is contained in:
Jake Howard 2018-01-06 16:36:12 +00:00
parent 09b831d52d
commit f287498cbe
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,7 +1,7 @@
{{ $home := .Site.GetPage "home" }}
{{ $sections := where (where .Site.Pages.ByTitle "Kind" "section") "Parent.UniqueID" $home.UniqueID }}
{{ $pages := where (where .Site.Pages.ByTitle "Kind" "page") "Section" "" }}
{{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
{{ $nav_pages := union $pages $sections }}
{{ range sort $nav_pages "LinkTitle" }}