aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris/layouts/_default/single.html')
-rw-r--r--themes/polaris/layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index d87f112..ef44984 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <h1>{{ .Title }}</h1>
- <p><em>Written {{ .Date | time.Format "Jan 02 2006" }}.</em></p>
+<h1>{{ .Title }}</h1>
+ {{ with .Date }}<p><em>Written {{ . | time.Format "Jan 02 2006" }}.</em></p>{{ end }}
{{ .Content }}
{{ end }}