Hello there,
I’m new to Hugo and I’m building a blog with two languages coded as eo and fr . I have a page in content/eo/primi.md. But, for now, it is generated in public/primi/index.html. I would have expected to be in public/eo/primi/index.html.
- Is this generation normal ? (
hugo.tomlbelow) - How to set up the url so I have to put
/eo/or/fr/to get to the language ? (Yes, I am aware that it means thatdomain.tld/wont be enough to access my website)
Thanks !
hugo.toml :
baseURL = ‘https://domain.tld/blogo/’ # it's not the original domain
title = ‘My New Hugo Site’
theme = ‘nightfall’
defaultContentLanguage = ‘eo’
defaultContentLanguageInSubdir = false
disableDefaultLanguageRedirect = false
disableLanguages =
[languages]
[languages.eo]
disabled = false
languageCode = ‘eo’
languageDirection = ‘’
contentDir = ‘content/eo’
languageName = ‘Esperanto’
title = ‘Mia blogo’
weight = 5
[languages.fr]
disabled = false
languageCode = ‘fr’
contentDir = ‘content/fr’
languageDirection = ‘’
languageName = ‘’
title = ‘Mon blog’
weight = 10
And the three content of content/ :
~/website $ tree content/
content/
├── eo
│ └── primi.md
└── fr
3 directories, 1 file
Thank you in advance !