1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-25 03:34:29 +01:00

Use RegularPages instead of Pages in list.html

This commit is contained in:
Camille Roux 2018-08-09 15:06:28 +02:00 committed by GitHub
parent 2981031e4f
commit 5581929151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@
{{ define "main" }}
{{ $truncate := default true .Site.Params.truncate }}
{{ $paginator := .Paginate (where .Site.Pages "Section" "in" .Site.Params.mainSections) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ if $truncate }}
{{ .Render "summary" }}