diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 9d4c97a1..ff64b1cf 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -5,7 +5,7 @@ {{- end }} {{- $pinned := first 1 (where $pages ".Params.pinned" true) }} {{- $pages = union $pinned $pages }} - {{- $paginator := .Paginate $pages .Site.Params.hb.blog.paginate }} + {{- $paginator := .Paginate $pages (default 12 .Site.Params.hb.blog.paginate) }} {{ partial "hb/modules/blog/title" . }} {{- end -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 34609a9f..43a78ea7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{- define "title" }} {{- $pages := .RegularPagesRecursive }} - {{- $paginator := .Paginate $pages .Site.Params.hb.blog.paginate }} + {{- $paginator := .Paginate $pages (default 12 .Site.Params.hb.blog.paginate) }} {{ partial "base/title" . }} {{- end -}}