diff options
-rw-r--r-- | layouts/_default/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1aa07d9..987ad8d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,7 +9,8 @@ {{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }} {{ with .Params.coverCaption }}hasCoverCaption{{ end }}"> <section class="postShorten-group main-content-wrap"> - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{/* Iterate only over pages of the same type as this section. */}} + {{ $paginator := .Paginate (where .Data.Pages "Type" .Type) }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} |