Merge pull request #6 from mikl/master

fix for pages with no date value
This commit is contained in:
kimcc 2020-03-09 18:44:45 -05:00 committed by GitHub
commit fcae0cf016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{{ define "main" }}
<h1 class="post-title">{{ .Title }}</h1>
{{ if .Date }}
<time>{{ .Date.Format "January 2, 2006" }}</time>
{{ end }}
<div>
<p>
{{ .Content }}