projects
/
brevno-suite
/
themes
/
xmin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a720a
)
Correct date check in single.html. (#25)
author
Shimmy Xu
<shimmy1996@users.noreply.github.com>
Mon, 19 Feb 2018 04:10:16 +0000
(20:10 -0800)
committer
Yihui Xie
<xie@yihui.name>
Mon, 19 Feb 2018 04:10:16 +0000
(22:10 -0600)
layouts/_default/single.html
patch
|
blob
|
history
diff --git
a/layouts/_default/single.html
b/layouts/_default/single.html
index 3dfda298e6a211464ab4b798c73a442c9245fc9c..0fb2f8b522578e1f29421075b99a45093ba4e088 100644
(file)
--- 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>