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-30 02:31:59 +0300
committerZachary Betz <zwbetz@gmail.com>2018-12-30 02:31:59 +0300
commitea50676e72d2986199b06bee016b468e6a6a8969 (patch)
tree9d3b6e813d9402872c5f25d15fa6f90739f706a0
parentb67f98c1f59dd5565743799a558d7d7dfb429b9d (diff)
Use PublishDate
-rw-r--r--layouts/partials/date-and-tags.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/date-and-tags.html b/layouts/partials/date-and-tags.html
index a021eb8..753667f 100644
--- a/layouts/partials/date-and-tags.html
+++ b/layouts/partials/date-and-tags.html
@@ -1,5 +1,5 @@
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
-<i data-feather="calendar"></i> {{ .Date.Format $dateFormat }}
+<i data-feather="calendar"></i> <time datetime="{{ .PublishDate }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<br>
<i data-feather="tag"></i>