summaryrefslogtreecommitdiffstats
path: root/layouts/partials/post-meta/date.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post-meta/date.html')
-rw-r--r--layouts/partials/post-meta/date.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html
index 92401e7..04a814a 100644
--- a/layouts/partials/post-meta/date.html
+++ b/layouts/partials/post-meta/date.html
@@ -1,10 +1,11 @@
-{{- if not .Date.IsZero }}
-<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
- {{- .Date | time.Format (site.Params.dateformat | default "January 02, 2006") -}}
-</time>
-{{- if ne .Date .Lastmod }}
-<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
- ({{ i18n "updated_at" }} {{ .Lastmod | time.Format (site.Params.dateformat | default "January 02, 2006") -}})
-</time>
-{{- end -}}
-{{- end }}
+{{ if not .Date.IsZero }}
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{ .Date | time.Format (site.Params.dateformat | default "January 02, 2006") }}
+ </time>
+
+ {{ if ne .Date .Lastmod }}
+ <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
+ ({{ i18n "updated_at" }} {{ .Lastmod | time.Format (site.Params.dateformat | default "January 02, 2006") }})
+ </time>
+ {{ end }}
+{{ end }}