diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-09 23:41:42 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-09 23:41:42 +0300 |
commit | 04454a51ea983831d52da204f1e344bcfa17e785 (patch) | |
tree | 50ecac3d1f380a3fe53e2fe7d6a5028379d76977 | |
parent | 4d0e260318dc474e576c892df986ed4ee1d28495 (diff) |
feat(i18n): change `lastUpdatedOn` item struct
-rw-r--r-- | i18n/en.toml | 2 | ||||
-rw-r--r-- | layouts/partials/article/components/footer.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index dd89621..61c5e4a 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -5,7 +5,7 @@ other = "Related contents" [lastUpdatedOn] - other ="Last updated on " + other ="Last updated on {{ .Count }}" [widgetArchiveTitle] other = "Archive" diff --git a/layouts/partials/article/components/footer.html b/layouts/partials/article/components/footer.html index 0360a00..9787f8f 100644 --- a/layouts/partials/article/components/footer.html +++ b/layouts/partials/article/components/footer.html @@ -18,7 +18,7 @@ <section class="article-time"> {{ (resources.Get "icons/clock.svg").Content | safeHTML }} <span class="article-time--modified"> - {{ T "lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} + {{ T "lastUpdatedOn" (.Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" )) }} </span> </section> {{- end -}} |