From ad6b6b2834bfaf552473f0d28acce458453c85a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 13 Sep 2026 17:57:30 +0200 Subject: [PATCH] fix: replace deprecated languageCode/.Site.LanguageCode with locale Hugo v0.158.0 deprecated the languageCode config key and .Site.LanguageCode in favor of locale and .Site.Language.Locale. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_012E2mmywuZyXmPBgSDtNdTL --- hugo.toml | 2 +- layouts/_default/baseof.html | 2 +- layouts/partials/head.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugo.toml b/hugo.toml index 85b5e92..9c9bc3d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,5 @@ baseURL = "https://pivoine.art/" -languageCode = "en-us" +locale = "en-US" title = "Pivoine" copyright = "© 2026 Pivoine Editorial" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3e790f7..ec9aab3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 452ae3f..c36d5f9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,7 +39,7 @@ /> - + {{- $ogImage := .Site.Params.ogImage -}} {{- $ogImageAlt := .Site.Title -}} {{- with .Params.banner -}}