summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index dba5a10..e1728d3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,9 +4,11 @@
<h1 class="post__headline">
{{ .Title }}
</h1>
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" class="post__publish-date">
- {{ .Date | time.Format ":date_medium" }}
+ {{- with .Date }}
+ <time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}" class="post__publish-date">
+ {{ . | time.Format ":date_medium" }}
</time>
+ {{- end }}
</header>
<div class="post__content">