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

github.com/miguelsimoni/hugo-initio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhungerford <mhungerford@gmail.com>2019-08-24 07:54:25 +0300
committermhungerford <mhungerford@gmail.com>2019-08-24 07:54:25 +0300
commitdeb087332ffe9141038ec340f0dc3da97bd0bfca (patch)
treee66a7556601cb035dd47c6f87d1b3f4696d114ff
parentdb720ea020cfac41d253a40e8cf7088b275aaaae (diff)
Fixes dateFormat for hugo updates.
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/single.html6
2 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c523ca0..c7abbc0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -10,7 +10,11 @@
<article class="post">
<header class="entry-header">
<div class="entry-meta">
- <span class="posted-on"><time class="entry-date published" date="{{ .Date }}">{{ dateFormat .Site.Params.DateForm .Date }}</time></span>
+ <span class="posted-on">
+ <time class="entry-date published" datetime="{{ .Date.Format .Site.Params.DateForm }}">
+ {{- .Date.Format "January 2, 2006" -}}
+ </time>
+ </span>
</div>
<h1 class="entry-title"><a href="{{ .Permalink }}" rel="bookmark">{{ .Title }}</a></h1>
</header>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2a22fd1..9c2a739 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,7 +10,11 @@
<article class="post">
<header class="entry-header">
<div class="entry-meta">
- <span class="posted-on"><time class="entry-date published" date="{{ .Date }}">{{ dateFormat .Site.Params.DateForm .Date }}</time></span>
+ <span class="posted-on">
+ <time class="entry-date published" datetime="{{ .Date.Format .Site.Params.DateForm }}">
+ {{- .Date.Format "January 2, 2006" -}}
+ </time>
+ </span>
</div>
<h1 class="entry-title"><a href="{{ .Permalink }}" rel="bookmark">{{ .Title }}</a></h1>
</header>