Rename ans simplify posts to show

This commit is contained in:
BernatBC 2024-01-19 19:01:54 +01:00
parent 97721a3c49
commit 73af341ef6
3 changed files with 3 additions and 12 deletions

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}