about summary refs log tree commit diff stats
path: root/layouts/_default
diff options
context:
space:
mode:
authorShimmy Xu2018-02-18 20:10:16 -0800
committerYihui Xie2018-02-18 22:10:16 -0600
commit6b05e2180441d5c08e89cff089f46a4f254a1e0f (patch)
treee56a6ff775154844940d3d81560c6067d294495b /layouts/_default
parent04a720a54baf997a8f00bd5311ee7eca6565bae9 (diff)
downloadhugo-xmin-6b05e2180441d5c08e89cff089f46a4f254a1e0f.tar.lz
hugo-xmin-6b05e2180441d5c08e89cff089f46a4f254a1e0f.tar.zst
hugo-xmin-6b05e2180441d5c08e89cff089f46a4f254a1e0f.zip
Correct date check in single.html. (#25)
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
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 @@
 <div class="article-meta">
 <h1><span class="title">{{ .Title }}</span></h1>
 {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
-{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
+{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
 </div>
 
 <main>