diff options
author | Michael Blum <mikeblum@users.noreply.github.com> | 2019-09-02 18:33:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 18:33:27 +0300 |
commit | 08cbc80609446c25c54be33460fff74c6b539fdf (patch) | |
tree | 454d31ade88c98e0847ceff4d73d6c3edb57d281 /layouts | |
parent | 175af9a0a1fe70321f5914ac31272fbd0a7edc5e (diff) |
[GH-682] Demos with empty homepage and/or wrong posts list (#5)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/project/list.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7ba9774..fc326fc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@ {{ partial "nav" . }} <div class="container"> <section class="section"> - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range sort $paginator.Pages }} <article> {{ partial "post-metadata-list" . }} diff --git a/layouts/project/list.html b/layouts/project/list.html index e83e0e3..79d0bd8 100644 --- a/layouts/project/list.html +++ b/layouts/project/list.html @@ -2,7 +2,7 @@ {{ partial "nav" . }} <div class="container"> <section class="section"> - {{ $paginator := .Paginate (where .Data.Pages "Type" "project") }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range sort $paginator.Pages }} <article> <div class="card"> |