Add select maximum number of posts per page (#866)
* Add select maximum number of posts per page * Rename ans simplify posts to show * Fix
This commit is contained in:
committed by
GitHub
parent
1aa27921d0
commit
def5ce662e
@@ -33,7 +33,8 @@
|
||||
<div class="content container-fluid" id="content">
|
||||
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||
{{ $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*/}}
|
||||
|
||||
Reference in New Issue
Block a user