From da122a827765e4bc4172b515c56af24802fc3877 Mon Sep 17 00:00:00 2001 From: Wee Sritippho Date: Sat, 17 Aug 2024 23:20:51 +0700 Subject: [PATCH] fix(i18n): Fix unlocalized article publish/lastUpdated date --- 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 -}}