Skip to content

Commit

Permalink
Correct date check in single.html. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimmy1996 authored and yihui committed Feb 19, 2018
1 parent 04a720a commit 6b05e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6b05e21

Please sign in to comment.