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

github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Caselli <damien.caselli@gmail.com>2017-07-26 20:22:24 +0300
committerDamien Caselli <damien.caselli@gmail.com>2017-07-26 20:22:24 +0300
commit830f98b332687e92b5d91bd1d6f6f3e2ed3cf190 (patch)
treeba8db2175f55fbfb2baeb6be6281fbb6f8d7aeb9
parente0b846a1414f3c5fd9bf2b07eaecf72632e5072a (diff)
Fix date format in time tags
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/post/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3dd479b..d453580 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,7 +9,7 @@
<ol>
{{ range .Pages -}}
<li>
- <time datetime="{{ dateFormat "2006-01-02T15:04:05Z-07:00" .Date }}">{{ dateFormat "Jan 02" .Date }}</time>
+ <time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "Jan 02"}}</time>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{- end }}
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 0c303e5..f7adb03 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -3,7 +3,7 @@
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
- <time class="post-date" datetime="{{ dateFormat "2006-01-02T15:04:05Z-07:00" .Date }}">{{ dateFormat "02 Jan 2006" .Date }}</time>
+ <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "02 Jan 2006" }}</time>
</header>
{{ .Content }}