I’m pretty new on HUGO, but I’ve been developping my new portfolio on it, and while I managed to make an english version of it, I would like to make it multilingual and avaliable both in french and english.
Here is the problem. I’m using “config.toml” to put all the important translations (such as section names and copyright info) on my index page, but it doesn’t show up.
title = "Antoine SARRAZIN - Young/Geek/Stuffmaker"
theme = "portfolio"
baseURL = "http://dev.antoinesarrazin.com/"
DefaultContentLanguage = "en"
name = "Antoine SARRAZIN"
subtitle = "Young/Geek/Stuffmaker"
copyright = "Coded with <i class='fa fa-heart'></i> and Powered by HUGO"
[Languages]
[Languages.en]
[Languages.en.params]
copyright = "Coded with <i class='fa fa-heart'></i> and Powered by HUGO"
linkedin = "https://en-link"
resume = "Resume.pdf"
[Languages.fr]
[Languages.fr.params]
linkedin = "http://lien-francais"
copyright = "Codé avec <i class='fa fa-heart'></i> et Propulsé par HUGO"
For exemple, I’m calling the “copyright” parameters : {{ .Site.Params.copyright | safeHTML }}
And, because of the safeHTML, HUGO says that “.Site.Params.copyright” has 0 arguments.
The name and subtitle doesn’t show up on either versions of the website…
I’m trying to put the project on GitHub to let you check the files, but if you have any advices, solutions or question, that would be great !
Wait… I think, only the ones after the first declaration of “copyright” aren’t shown on both version. Which correspond to this. Any ideas ? Is “copyright” an already used value or something ?
[Languages.en.params.navigation]
about = "About"work = "Work"
[Languages.en.params.portfolio]
all = "All"
games = "Games"
video = "Video"
code = "Code"
other = "Other"
[Languages.fr]
[Languages.fr.params]
linkedin = "http://lien-francais"
copyright = "Codé avec <i class='fa fa-heart'></i> et Propulsé par HUGO"