We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a720a commit 6b05e21Copy full SHA for 6b05e21
layouts/_default/single.html
@@ -2,7 +2,7 @@
2
<div class="article-meta">
3
<h1><span class="title">{{ .Title }}</span></h1>
4
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
5
-{{ 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 }}
6
</div>
7
8
<main>
0 commit comments