Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAna Ulin <ana@ulin.org>2018-09-19 03:19:43 +0300
committerAna Ulin <ana@ulin.org>2018-09-19 03:37:53 +0300
commit0894dc20c21da13441d1bd17ba71f0917ea74200 (patch)
tree7bcc93bc97118bf539b9ad532fdc900141155f52 /layouts/_default
parente8d1623c6a99f7d6168017e29cc77bb2c3ba362f (diff)
Make list template work for any content type name.
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html3
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 }}