Rename ans simplify posts to show
This commit is contained in:
parent
97721a3c49
commit
73af341ef6
3 changed files with 3 additions and 12 deletions
|
@ -32,10 +32,7 @@
|
|||
<div class="content container-fluid" id="content">
|
||||
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||
{{ $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 }}
|
||||
|
|
|
@ -33,10 +33,7 @@
|
|||
<div class="content container-fluid" id="content">
|
||||
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||
{{ $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 }}
|
||||
|
|
|
@ -33,10 +33,7 @@
|
|||
<div class="content container-fluid" id="content">
|
||||
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||
{{ $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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue