no need to be global here

This commit is contained in:
Yihui Xie 2017-06-19 14:51:07 -05:00
parent 4bb3052d17
commit bfe749bfdb

View file

@ -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 .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
</div>
<main>