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