Files
hugo-theme-stack/demo/config/_default/hugo.toml
T
d3eacc9daf 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>
2026-05-03 22:49:42 +02:00

23 lines
603 B
TOML

baseURL = "https://demo.stack.cai.im/"
locale = "en-us"
title = "Hugo Theme Stack"
# Theme i18n support
# See i18n folder for available languages
defaultContentLanguage = "en"
# Set hasCJKLanguage to true if DefaultContentLanguage is a CJK language
# This will make .Summary and .WordCount behave correctly
hasCJKLanguage = false
[[module.imports]]
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
[pagination]
pagerSize = 3
[permalinks]
post = "/p/:slug/"
page = "/:slug/"
[services.disqus]
shortname = "hugo-theme-stack"