Using site.Params.mainSections for listing posts
This commit is contained in:
parent
1c50bcc7ec
commit
350fe18188
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue