mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-17 18:13:38 +00:00
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:
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:
|
||||
|
||||
Reference in new issue
Block a user