Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-12-31 22:22:18 +0300
committerZachary Betz <zwbetz@gmail.com>2018-12-31 22:22:18 +0300
commitff9d0234f0a384c2a754f441ee6092cbb06a0f18 (patch)
tree83e876de29977ff2b7ba774a2f23c2765e3e4a6b
parent0ac4164afa5587976b239bbdbdee136fc276474a (diff)
Fix datetime attr format
-rw-r--r--layouts/partials/date-and-tags.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/date-and-tags.html b/layouts/partials/date-and-tags.html
index 753667f..51617ed 100644
--- a/layouts/partials/date-and-tags.html
+++ b/layouts/partials/date-and-tags.html
@@ -1,5 +1,6 @@
+{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
-<i data-feather="calendar"></i> <time datetime="{{ .PublishDate }}">{{ .PublishDate.Format $dateFormat }}</time>
+<i data-feather="calendar"></i> <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<br>
<i data-feather="tag"></i>