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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012E2mmywuZyXmPBgSDtNdTL
This commit is contained in:
2026-09-13 17:57:30 +02:00
co-authored by Claude Sonnet 5
parent bbfba94454
commit ad6b6b2834
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
baseURL = "https://pivoine.art/"
languageCode = "en-us"
locale = "en-US"
title = "Pivoine"
copyright = "© 2026 Pivoine Editorial"
+1 -1
View File
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="{{ .Site.LanguageCode }}" class="scroll-smooth">
<html lang="{{ .Site.Language.Locale }}" class="scroll-smooth">
<head>
{{- partial "head.html" . -}}
</head>
+1 -1
View File
@@ -39,7 +39,7 @@
/>
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:locale" content="{{ .Site.LanguageCode | default "en_US" | replaceRE "-" "_" }}" />
<meta property="og:locale" content="{{ .Site.Language.Locale | default "en_US" | replaceRE "-" "_" }}" />
{{- $ogImage := .Site.Params.ogImage -}}
{{- $ogImageAlt := .Site.Title -}}
{{- with .Params.banner -}}