Use builtin to get normal pages
This commit is contained in:
parent
09b831d52d
commit
f287498cbe
1 changed files with 1 additions and 1 deletions
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue