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

github.com/luizdepra/hugo-coder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz F. A. de Prá <luiz.pra@luizalabs.com>2022-02-25 18:11:29 +0300
committerLuiz F. A. de Prá <luiz.pra@luizalabs.com>2022-02-25 18:11:29 +0300
commit680c7ab860e70f29e3eba332dd67f0ba590f88c4 (patch)
tree07d59d77189d18cb4f430b471e8f55a1a6ff24d3
parentf67caf19b9a19c6713884f156ba67a142ff3910d (diff)
Fix date i18n
-rw-r--r--layouts/partials/list.html2
-rw-r--r--layouts/posts/li.html2
-rw-r--r--layouts/posts/single.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index 72d3990..604f765 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -12,7 +12,7 @@
<ul>
{{ range .Paginator.Pages }}
<li>
- <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
+ <span class="date">{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
diff --git a/layouts/posts/li.html b/layouts/posts/li.html
index dd58396..9d8a659 100644
--- a/layouts/posts/li.html
+++ b/layouts/posts/li.html
@@ -1,4 +1,4 @@
<li>
- <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
+ <span class="date">{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
</li>
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index f102380..6c7509e 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -17,7 +17,7 @@
<span class="posted-on">
<i class="fa fa-calendar" aria-hidden="true"></i>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
- {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
+ {{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
</time>
</span>
<span class="reading-time">