mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-25 14:43:32 +02:00
Correct date check in single.html. (#25)
This commit is contained in:
parent
04a720a54b
commit
6b05e21804
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue