From 374b25a60fbe333cb60f0593d679978721da8723 Mon Sep 17 00:00:00 2001 From: weeix Date: Sat, 7 Sep 2024 18:48:09 +0700 Subject: [PATCH] fix(i18n): fix unlocalized article publish/lastUpdated date (#1050) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1040 --- layouts/partials/article/components/details.html | 2 +- layouts/partials/article/components/footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index cc0a0fc..7c27302 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -32,7 +32,7 @@
{{ partial "helper/icon" "date" }}
{{ end }} diff --git a/layouts/partials/article/components/footer.html b/layouts/partials/article/components/footer.html index 6853921..9795880 100644 --- a/layouts/partials/article/components/footer.html +++ b/layouts/partials/article/components/footer.html @@ -12,7 +12,7 @@
{{ partial "helper/icon" "clock" }} - {{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} + {{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
{{- end -}}