From e2a3d5a63d94c6a4d38c6728c30abbe1018fbb3e Mon Sep 17 00:00:00 2001 From: aaaaalbert Date: Sat, 3 Aug 2024 16:59:48 +0000 Subject: [PATCH] Fix #1490, Hugo deprecating `.Page.File.Lang` (#1491) * Update single.html, index.html, footer.html --- layouts/_default/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/footer.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 13a6ff67..fc3ad91f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,7 +11,7 @@ {{ .Content }}

- {{ i18n "lastUpdated" }} {{ .Lastmod.Format "January 2, 2006" }}{{ with .File }} · {{ i18n "improvePage" }}{{ end }} + {{ i18n "lastUpdated" }} {{ .Lastmod.Format "January 2, 2006" }}{{ with .File }} · {{ i18n "improvePage" }}{{ end }} {{ if .IsTranslated }}
diff --git a/layouts/index.html b/layouts/index.html index 9e037302..19199719 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,7 +11,7 @@ {{ .Content }}

- {{ i18n "lastUpdated" }} {{ i18n "lastUpdatedDateFormat" .Lastmod }}{{ with .File }} · {{ i18n "improvePage" }}{{ end }} + {{ i18n "lastUpdated" }} {{ i18n "lastUpdatedDateFormat" .Lastmod }}{{ with .File }} · {{ i18n "improvePage" }}{{ end }} {{ if .IsTranslated }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 77ae2f35..2d34f2a9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -35,5 +35,5 @@ {{ i18n "joinMastodon" }} · {{ i18n "blog" }} ·

- +