Hi there, thank you for providing hugo to the world, it’s an amazing tool!
During the past week, I’m battling a “simple” language issue and I’m genuinely stuck right now. I want “/” to be a different language than en.
The problem is that
defaultContentLanguage variable seems to be ignored:
DEBUG 2023/02/10 11:54:34 Write redirect to main language en: https://... DEBUG 2023/02/10 11:54:34 creating alias: en redirecting to https://...
I tried defaultContentLanguageInSubdir set to true and false, I tried reorganize content with contentDir and without, but hugo still makes en my main language.
My current config:
defaultContentLanguage = "cs" defaultContentLanguageInSubdir = false [languages.cs] languageCode = "cs" weight = 1 contentDir = 'content/cs' [languages.en] title = "..." languageCode = "en" weight = 2 contentDir = 'content/en'
The truth is that I don’t even need the en translation because the site will only be in cs.
content ├── cs │ ├── index.md │ └── post │ ├── post1.md │ └── post2.md └── en └── about.md 4 directories, 5 files
(en/about literally says there is no en content)
I am using GitHub - xianmin/hugo-theme-jane: A readable & concise theme for Hugo
hugo v0.110.0-e32a493b7826d02763c3b79623952e625402b168+extended linux/amd64 BuildDate=2023-01-17T12:16:09Z VendorInfo=gohugoio
I’d be grateful for any suggestions, thank you.