diff options
author | Ana Ulin <ana@ulin.org> | 2018-09-19 03:19:43 +0300 |
---|---|---|
committer | Ana Ulin <ana@ulin.org> | 2018-09-19 03:37:53 +0300 |
commit | 0894dc20c21da13441d1bd17ba71f0917ea74200 (patch) | |
tree | 7bcc93bc97118bf539b9ad532fdc900141155f52 /layouts/_default | |
parent | e8d1623c6a99f7d6168017e29cc77bb2c3ba362f (diff) |
Make list template work for any content type name.
Diffstat (limited to 'layouts/_default')
-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 }} |