From: Shimmy Xu Date: Mon, 19 Feb 2018 04:10:16 +0000 (-0800) Subject: Correct date check in single.html. (#25) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6b05e2180441d5c08e89cff089f46a4f254a1e0f;p=brevno-suite%2Fthemes%2Fxmin Correct date check in single.html. (#25) --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3dfda29..0fb2f8b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

{{ .Title }}

{{ with .Params.author }}

{{ . }}

{{ end }} -{{ if .Params.date }}

{{ .Date.Format "2006/01/02" }}

{{ end }} +{{ if (gt .Params.date 0) }}

{{ .Date.Format "2006/01/02" }}

{{ end }}