From 2c65850e1a66fb78432800d043e38dbf1b1a4ffc Mon Sep 17 00:00:00 2001 From: Frieder Schrempf Date: Tue, 29 Dec 2020 10:13:05 +0100 Subject: [PATCH] fixup! Don't show date information of post when no date is set --- layouts/partials/author-date.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/author-date.html b/layouts/partials/author-date.html index fd51344..f6355a7 100644 --- a/layouts/partials/author-date.html +++ b/layouts/partials/author-date.html @@ -1,3 +1,3 @@ -{{ with .Param "author" }}{{ end -}} -{{ if and .Date (.Param "author") }} - {{ end -}} +{{ with $.Param "author" }}{{ end -}} +{{ if and .Date ($.Param "author") }} - {{ end -}} {{ with .Date }}{{ end }} \ No newline at end of file