From 730ced7716e909d904ba058a2748f3eeb77a431e Mon Sep 17 00:00:00 2001 From: Sid <122173059+hugo-sid@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:32:56 +0530 Subject: [PATCH] fix: hugo error when dateFormat parameter is not set, closes #128 --- layouts/partials/postCard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/postCard.html b/layouts/partials/postCard.html index e06d42c9..cb186fbb 100644 --- a/layouts/partials/postCard.html +++ b/layouts/partials/postCard.html @@ -4,7 +4,7 @@

{{/* format date string to create an ISO 8601 string */}} {{ $ISO_date := "2006-01-02T15:04:05Z0700" }} - {{ $configDateFormat := .Site.Params.dateFormat }} + {{ $configDateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}