We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b9a9f commit f8be009Copy full SHA for f8be009
layouts/_partials/section-index.html
@@ -1,8 +1,12 @@
1
<div class="section-index">
2
{{ $page := .Page -}}
3
- {{ $pages := (where .Site.Pages "Section" .Section).ByWeight -}}
+ {{ $pages := .Site.Pages.ByWeight -}}
4
+ {{ if .Section -}}
5
+ {{ $pages = (where $pages "Section" .Section) -}}
6
+ {{ end -}}
7
{{ $pages = (where $pages "Type" "!=" "search") }}
8
{{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
9
+ {{ $pages = (where $pages ".Kind" "!=" "taxonomy") -}}
10
{{ $pages = (where $pages ".Parent" "!=" nil) -}}
11
{{ $pages = (where $pages ".Parent.File" "!=" nil) -}}
12
{{ if $page.File -}}
0 commit comments