From 5d08e8402299fc3ef75718b90a235f455ddfa026f404217d6f89e8afaf7ff624 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 25 Aug 2023 00:00:00 +0000 Subject: Correctly handle absent journal entries --- layouts/index.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index f2e757c..6f231df 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,9 +12,11 @@ {{ end -}} + {{ if .Site.RegularPages -}}

{{ i18n "journalEntries" }}

{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}} {{ partial "metadata.html" . }} {{ end -}} + {{ end -}} {{- end }} \ No newline at end of file -- cgit v1.2.3