From 04ef0c83beffb1ca89dac3ee39dfb7a257fa6ff2 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Thu, 30 Apr 2026 08:46:38 +0200 Subject: [PATCH] .Site.LanguageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use .Site.Language.Locale instead --- hugo.yaml | 2 +- themes/hugo-theme-ipng/layouts/_default/rss.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index 94e395c..6db5c6c 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ baseURL: 'https://ipng.ch/' -languageCode: 'en-us' +locale: 'en-us' title: "IPng Networks" theme: 'hugo-theme-ipng' diff --git a/themes/hugo-theme-ipng/layouts/_default/rss.xml b/themes/hugo-theme-ipng/layouts/_default/rss.xml index 6d785ea..c667e73 100644 --- a/themes/hugo-theme-ipng/layouts/_default/rss.xml +++ b/themes/hugo-theme-ipng/layouts/_default/rss.xml @@ -5,7 +5,7 @@ {{ .Permalink }} Latest blog posts from {{ .Site.Title }} - {{ with .Site.LanguageCode }} + {{ with .Site.Language.Locale }} {{.}} {{end}}