From 54cdfb66992fce0ce32c7de30b7e7f7f79676de0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 14 Feb 2018 21:07:05 +0000 Subject: [PATCH] Only show date if there's a valid date --- layouts/partials/content-details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/content-details.html b/layouts/partials/content-details.html index 717c40a..c47aed0 100644 --- a/layouts/partials/content-details.html +++ b/layouts/partials/content-details.html @@ -1,4 +1,4 @@ - {{ if .Params.date }} + {{ if not .Date.IsZero }} {{ .Date.Format "2006-01-02" }} {{ end }}