Update...

This commit is contained in:
Phil Bajsicki 2024-09-27 20:45:08 +02:00
parent ceedc91cfa
commit 92335d1150
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@
<section class="page-list"> <section class="page-list">
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }} {{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
{{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }} {{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }}
{{ $pgFilter3 := where .Site.RegularPages "Params.hidefromhome" "!=" true }} <!-- {{ $pgFilter3 := where .Site.RegularPages "Params.hidefromhome" "!=" true }} -->
{{ $pgFilter := $pgFilter1 | intersect $pgFilter2 | intersect $pgFilter3}} {{ $pgFilter := $pgFilter1 | intersect $pgFilter2 | intersect $pgFilter3}}
{{ range (.Paginate $pgFilter).Pages }} {{ range (.Paginate $pgFilter).Pages }}
<h2 class="content-title"> <h2 class="content-title">

View file

@ -2,14 +2,14 @@
<hr /> <hr />
<div class="previous-post" style="display:inline-block;"> <div class="previous-post" style="display:inline-block;">
{{ if .PrevPage }} {{ if .Page.Prev }}
<a class="link-reverse" href="{{ .PrevPage.Permalink }}?ref=footer">« {{ .PrevPage.Title | truncate 50 "..."}}</a> <a class="link-reverse" href="{{ .Page.Prev.Permalink }}?ref=footer">« {{ .Page.Prev.Title | truncate 50 "..."}}</a>
{{ end }} {{ end }}
</div> </div>
<div class="next-post", style="display:inline-block;float:right;"> <div class="next-post", style="display:inline-block;float:right;">
{{ if .NextPage }} {{ if .Page.Next }}
<a class="link-reverse" href="{{ .NextPage.Permalink }}?ref=footer">{{ .NextPage.Title | truncate 50 "..." }} »</a> <a class="link-reverse" href="{{ .Page.Next.Permalink }}?ref=footer">{{ .Page.Next.Title | truncate 50 "..." }} »</a>
{{ end }} {{ end }}
</div> </div>