diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b6937cd..92cd9c4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -32,10 +32,7 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $numShow := 12}} - {{ if site.Params.postsPage.maxPostsPerPage}} - {{ $numShow = site.Params.postsPage.maxPostsPerPage }} - {{ end }} + {{ $numShow = site.Params.features.pagination.maxPostsPerPage | default 12}} {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }} diff --git a/layouts/categories/list.html b/layouts/categories/list.html index afc31ac..96b315d 100644 --- a/layouts/categories/list.html +++ b/layouts/categories/list.html @@ -33,10 +33,7 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $numShow := 12}} - {{ if site.Params.postsPage.maxPostsPerPage}} - {{ $numShow = site.Params.postsPage.maxPostsPerPage }} - {{ end }} + {{ $numShow = site.Params.features.pagination.maxPostsPerPage | default 12}} {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }} diff --git a/layouts/tags/list.html b/layouts/tags/list.html index 76a381a..074a1e1 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -33,10 +33,7 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $numShow := 12}} - {{ if site.Params.postsPage.maxPostsPerPage}} - {{ $numShow = site.Params.postsPage.maxPostsPerPage }} - {{ end }} + {{ $numShow = site.Params.features.pagination.maxPostsPerPage | default 12}} {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }}