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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E8Es4ZhoJG6vrxN3GLGhLz
This commit is contained in:
1 parent
a379b0d00f
commit
5889f02c21
3 files changed
+3
-3
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
baseURL = "https://pivoine.art/"
|
baseURL = "https://pivoine.art/"
|
||||||
languageCode = "en-us"
|
locale = "en-us"
|
||||||
title = "Pivoine"
|
title = "Pivoine"
|
||||||
copyright = "© 2026 Pivoine Editorial"
|
copyright = "© 2026 Pivoine Editorial"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ .Site.LanguageCode }}" class="scroll-smooth">
|
<html lang="{{ .Site.Language.Locale }}" class="scroll-smooth">
|
||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
/>
|
/>
|
||||||
<meta property="og:url" content="{{ .Permalink }}" />
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
<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 -}}
|
{{- $ogImage := .Site.Params.ogImage -}}
|
||||||
{{- $ogImageAlt := .Site.Title -}}
|
{{- $ogImageAlt := .Site.Title -}}
|
||||||
{{- with .Params.banner -}}
|
{{- with .Params.banner -}}
|
||||||
|
|||||||
Reference in new issue
Block a user