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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-09-09 18:35:22 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-09-09 18:35:22 +0300
commit4d0e260318dc474e576c892df986ed4ee1d28495 (patch)
tree7b2a5ba096243ea61d3b6ec9475ce2ececb40b94 /layouts/partials/article/components/details.html
parentda112157cfbc7ce0f04842c6add5154679f64b10 (diff)
feat(i18n): make dateFormat part of theme config
Diffstat (limited to 'layouts/partials/article/components/details.html')
-rw-r--r--layouts/partials/article/components/details.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 9c2517d..4349d61 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -33,7 +33,7 @@
<footer class="article-time">
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
<time class="article-time--published">
- {{- .Date.Format ( or .Site.Params.dateFormat "Jan 02, 2006" ) -}}
+ {{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
</time>
</footer>
{{- end -}}