Merge pull request #6 from mikl/master
fix for pages with no date value
This commit is contained in:
commit
fcae0cf016
@ -1,6 +1,8 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1 class="post-title">{{ .Title }}</h1>
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
|
{{ if .Date }}
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
|
{{ end }}
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
Loading…
Reference in New Issue
Block a user