diff options
| author | Reorx <novoreorx@gmail.com> | 2022-09-08 00:25:50 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-09-08 00:25:50 +0800 |
| commit | d9c228117bff094eb3545999364a8533f141467d (patch) | |
| tree | 25b3c0b329f8e964c070fb489a2a02e663bd531d /layouts/_default/list.html | |
| parent | 462835f1d875be15e786a3fca8fcc48ac7c57f33 (diff) | |
fix all pages query issues in: list, archives, newsletter section, post_nav_links
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5797a30..67e1897 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -32,6 +32,7 @@ {{- $pages := .Pages }} {{- if .IsHome }} + {{/* get all regular pages instead of pages in a section */}} {{- $pages = where site.RegularPages "Section" "in" site.Params.mainSections }} {{- end }} {{- $pages = where $pages "Params.hidden" "!=" true }} |
