Remove unnecessary manual calculation of top-level sections
This commit is contained in:
parent
e65f54ff62
commit
5cd46ba963
1 changed files with 1 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
||||||
{{ $home := .Site.GetPage "home" }}
|
{{ $home := .Site.GetPage "home" }}
|
||||||
|
|
||||||
{{ $sections := where (where .Site.Pages.ByTitle "Kind" "section") "Parent.File.UniqueID" $home.File.UniqueID }}
|
|
||||||
{{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
|
{{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
|
||||||
{{ $nav_pages := union $pages $sections }}
|
{{ $nav_pages := union $pages .Site.Sections }}
|
||||||
|
|
||||||
{{ range sort $nav_pages "LinkTitle" }}
|
{{ range sort $nav_pages "LinkTitle" }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|
Loading…
Reference in a new issue