fix: Hugo language related deprecation (v0.158.0+) (#1334)

* language related deprecation fix

Reference: https://github.com/gohugoio/hugo/releases/tag/v0.158.0
.Site.LanguageCode -> .Site.Language.Locale
.Language.LanguageDirection -> .Language.Direction
.Language.LanguageCode -> .Language.Locale

Also, in the configuration hugo.toml, the user should change `languageCode` to `locale`.

* Update languageCode to locale in configuration

* fix(languages): update languageName to label in languages.toml

* .Language.LanguageName -> .Language.Label

* .Language.Lang -> .Language.Name

---------

Co-authored-by: Jimmy Cai <jimmy@cai.im>
This commit is contained in:
Bigstool
2026-05-03 22:49:42 +02:00
committed by GitHub
co-authored by Jimmy Cai
parent c0f57bab7a
commit d3eacc9daf
6 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
baseURL = "https://demo.stack.cai.im/"
languageCode = "en-us"
locale = "en-us"
title = "Hugo Theme Stack"
# Theme i18n support
# See i18n folder for available languages