diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6bc2de4d6..9485de38b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -32,7 +32,8 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $paginator := .Paginate $posts 12 }} + {{ $numShow := site.Params.features.pagination.maxPostsPerPage | default 12}} + {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }} {{/* ignore the search.md file*/}} diff --git a/layouts/categories/list.html b/layouts/categories/list.html index 48a48a4c9..5a79b8fd2 100644 --- a/layouts/categories/list.html +++ b/layouts/categories/list.html @@ -33,7 +33,8 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $paginator := .Paginate $posts 12 }} + {{ $numShow := site.Params.features.pagination.maxPostsPerPage | default 12}} + {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }} {{/* ignore the search.md file*/}} diff --git a/layouts/tags/list.html b/layouts/tags/list.html index 4ff7fd7ab..514a14156 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -33,7 +33,8 @@
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }} - {{ $paginator := .Paginate $posts 12 }} + {{ $numShow := site.Params.features.pagination.maxPostsPerPage | default 12}} + {{ $paginator := .Paginate $posts $numShow }} {{ range $paginator.Pages }} {{ if .Layout }} {{/* ignore the search.md file*/}}