From 5e806e3b8bc45b96bba11b21cef0d5f538f8ac5c Mon Sep 17 00:00:00 2001 From: Shea Polansky Date: Sun, 15 Sep 2019 10:35:55 -0700 Subject: [PATCH] Don't show dates if not set --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4d1688f..a838639 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,11 @@ {{ define "main"}}

{{ .Title }}

{{ partial "header.html" . }} + {{ if not .Date.IsZero }} {{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}

{{ .Date.Format $singlePageDateFormat }}

+ {{ end }} {{ if .Param "tags" }}