* refactor: migrate i18n files from YAML to TOML format and simplify structure * refactor: make translation file adjust to gohugoio/locales language code so date translation can work properly * refactor: use hyphens instead of underscores for i18n, because that's how Hugo pick the translation file * docs: update comments for i18n language availability and CJK language detection in hugo.toml.
26 lines
585 B
TOML
26 lines
585 B
TOML
baseURL = "https://example.com/"
|
|
languageCode = "en-us"
|
|
title = "Example Site"
|
|
copyright = "Example Person"
|
|
|
|
# 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"
|