Fix home link with multi-language

This commit is contained in:
Melora Hugues 2023-06-26 13:09:00 +02:00
parent a7fc843106
commit 19708aba48

View file

@ -1,5 +1,5 @@
baseURL = "https://faercol.me" baseURL = "https://faercol.me"
languageCode = "en-us" # languageCode = "en-us"
defaultContentLanguage = "en" defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true defaultContentLanguageInSubdir = true
favicon = true favicon = true
@ -72,19 +72,33 @@ publishDir = "public"
contentDir = "content/en" contentDir = "content/en"
[languages.en.params] [languages.en.params]
homeSubtitle = "This is where I mostly talk about tech... and stuff" homeSubtitle = "This is where I mostly talk about tech... and stuff"
[languages.en.params.logo]
logoText = "Hello there!"
logoHomeLink = "/en/"
[languages.fr] [languages.fr]
contentDir = "content/fr" contentDir = "content/fr"
[languages.fr.params] [languages.fr.params]
homeSubtitle = "Là où je parle de tech... et d'autres trucs" homeSubtitle = "Là où je parle de tech... et d'autres trucs"
[languages.fr.params.logo]
logoText = "Hello there!"
logoHomeLink = "/fr/"
[menu] [menu]
[[menu.main]] [[menu.main]]
identifier = "blog" identifier = "blog"
name = "Blog" name = "Blog"
url = "/posts" url = "/posts"
weight = 1
[[menu.main]]
identifier = "about_me"
name = "About me"
url = "/about-me"
weight = 10
[[menu.main]] [[menu.main]]
identifier = "resume" identifier = "resume"
name = "Resume" name = "Resume"
url = "https://resume.faercol.me" url = "https://resume.faercol.me"
weight = 40