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">
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
{{ $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}}
{{ range (.Paginate $pgFilter).Pages }}
<h2 class="content-title">

View file

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