From 0b92b5cd388cd62a5e59b45847b26095a093ad96 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 16 Oct 2021 10:08:47 -0400 Subject: hugo-pt2021: handle empty article list --- themes/hugo-pt2021/layouts/articles/list.html | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'themes/hugo-pt2021/layouts') diff --git a/themes/hugo-pt2021/layouts/articles/list.html b/themes/hugo-pt2021/layouts/articles/list.html index 8db3f26..f9c747b 100644 --- a/themes/hugo-pt2021/layouts/articles/list.html +++ b/themes/hugo-pt2021/layouts/articles/list.html @@ -3,6 +3,9 @@ {{- end -}} {{- define "main" -}} + {{/* get visible articles */}} + {{- $rows := union (where .Pages "Params.show" true) (where .Pages "Params.show" nil) -}} +

@@ -11,18 +14,18 @@
-- cgit v1.2.3