Skip to content

Commit 6b05e21

Browse files
shimmy1996yihui
authored andcommitted
Correct date check in single.html. (#25)
1 parent 04a720a commit 6b05e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="article-meta">
33
<h1><span class="title">{{ .Title }}</span></h1>
44
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
5-
{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
5+
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
66
</div>
77

88
<main>

0 commit comments

Comments
 (0)