From 6b05e2180441d5c08e89cff089f46a4f254a1e0f Mon Sep 17 00:00:00 2001 From: Shimmy Xu Date: Sun, 18 Feb 2018 20:10:16 -0800 Subject: Correct date check in single.html. (#25) --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') 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 }}
-- cgit 1.4.1