From a832f69fcfd1958fd6e5cd1cea9432b66d78ade2 Mon Sep 17 00:00:00 2001 From: Jason Rogena Date: Thu, 8 Jul 2021 12:18:31 +0300 Subject: [PATCH 1/2] Allow default .Site.Params.showAllPostsArchive Allow, if .Site.Params.showAllPostsArchive is not set, the site to function as if the variable has been set to false. Fixes monkeyWzr/hugo-theme-cactus#83 Signed-off-by: Jason Rogena --- layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e8c3e313..dca19f21 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -23,8 +23,8 @@

{{ $pageYear }}

{{ end }} - {{ if eq .Site.Params.showAllPostsArchive false }} + {{ if or (not .Site.Params.showAllPostsArchive) (eq .Site.Params.showAllPostsArchive false) }} {{ partial "pagination.html" . }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }} From f14db828c83415bb48a0fcc25e029fb5788a545f Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 3 Nov 2021 11:52:36 +0000 Subject: [PATCH 2/2] Restyled by whitespace --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index dca19f21..1105d116 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,7 +17,7 @@

{{ $pageYear }}

- + {{ if .Title }} {{ .Title }} {{ else }} Untitled {{ end }}