diff options
author | Jose Valecillos <valecillosjg@gmail.com> | 2019-08-18 14:18:36 +0300 |
---|---|---|
committer | Jose Valecillos <valecillosjg@gmail.com> | 2019-08-18 14:18:36 +0300 |
commit | 350fe18188c01564ca83bd8e500b7837fcae0e3d (patch) | |
tree | e225b40eea2f9825f4a4570697addcc3a017e03b | |
parent | 1c50bcc7ec7f0c6d23cb8194d42ede364c48eb99 (diff) |
Using site.Params.mainSections for listing posts
-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 003f4d9..c1a00bb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ define "content" }} <div class="post-list"> - {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range $paginator.Pages }} {{ if .Draft }} {{ .Scratch.Set "draftPage" true }} |