From f287498cbe75b8ee8111022391d6c457efb77986 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 6 Jan 2018 16:36:12 +0000 Subject: [PATCH] Use builtin to get normal pages --- layouts/partials/nav_pages.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/nav_pages.html b/layouts/partials/nav_pages.html index 47e0820..94fe96e 100644 --- a/layouts/partials/nav_pages.html +++ b/layouts/partials/nav_pages.html @@ -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" }}