Skip to content

Commit

Permalink
Rename ans simplify posts to show
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Jan 19, 2024
1 parent 97721a3 commit 73af341
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 1 addition & 4 deletions layouts/categories/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 1 addition & 4 deletions layouts/tags/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 73af341

Please sign in to comment.