diff options
author | Antonin Kral <a.kral@bobek.cz> | 2019-08-19 16:16:50 +0300 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2019-08-19 16:16:50 +0300 |
commit | 11317542406ac8064978dcb81ad652bf2c623c45 (patch) | |
tree | 34d03fe64559dba695e67d9843d62eaa114c5dc8 /layouts | |
parent | 79abb2e4d600600772b594d32e8434f61e83fcab (diff) |
Let's use `mainSections` when looking for relevant content for the home page
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index a6b7b27..9381c43 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ {{ end }} <div class="posts-list"> - {{ $pag := .Paginate (where .Site.RegularPages "Type" "post") }} + {{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range $pag.Pages }} <article class="post-preview"> <a href="{{ .Permalink }}"> |