From 5889f02c21455ca4b75b19f54f7655a9c27e985b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 13 Sep 2026 17:48:58 +0200 Subject: [PATCH] fix: replace deprecated .Site.LanguageCode with .Site.Language.Locale Hugo v0.158.0 deprecated .Site.LanguageCode in favor of .Site.Language.Locale, and deprecated the languageCode config key in favor of locale. Update both to silence the build warnings. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01E8Es4ZhoJG6vrxN3GLGhLz --- 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 dbd7a0b..8496561 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 7a63ff8..c89196a 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 -}}