feat(hugo): replace deprecated language APIs for Hugo v0.158+ compatibility

Replace site.LanguageCode → site.Language.Locale and
.Language.LanguageCode → .Language.Locale in module layouts,
and languageCode → locale in all template language configs.
This commit is contained in:
George Cushen committed 2026-03-27 03:30:44 +00:00
1 parent ef8ed449c7
commit 815d25ca9d
16 files changed
+38 -38

No files matched your search

@@ -4,13 +4,13 @@
# Default language
en:
languageCode: en-us
locale: en-us
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
#contentDir: content/en
# Uncomment the lines below to configure your website in a second language.
#zh:
# languageCode: zh-Hans
# locale: zh-Hans
# contentDir: content/zh
# title: Chinese website title...
# params: