From a832f69fcfd1958fd6e5cd1cea9432b66d78ade2 Mon Sep 17 00:00:00 2001 From: Jason Rogena Date: Thu, 8 Jul 2021 12:18:31 +0300 Subject: [PATCH] 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 }}