Goodmorning everyone,
I’m setting up a small personal blog in Hugo, for now is only in italian but I would like to make the default language english with italian translation.
I’m having an hard time to understand how translation works in Hugo, I read the doc and tried to implement an it/ and en/ directory with the same content (I will change it later) and I tried to make a test.md in english and put that in both directories, in this case italian translation didn’t work.
My hugo.toml:
baseURL = "https://lorenzocesana.xyz/"
languageCode = "en-us"
title = "Lorenzo Cesana's Website"
theme = 'lugo'
[Params]
email = "lorenzo@lorenzocesana.xyz"
defaultContentLanguage = 'en'
defaultContentLanguageInSubdir = true
[languages]
[languages.en]
contentDir = 'content/en'
disabled = false
languageCode = 'en-US'
languageDirection = 'ltr'
languageName = "English"
weight = 1
[languages.it]
contentDir = 'content/it'
disabled = false
languageCode = 'it-IT'
languageDirection = 'ltr'
languageName = "Italian"
weight = 2
Of course I’m getting something wrong here, could someone help me understand?
Many thanks in advance