Multilingual site home page button

Hello,

Some of my articles are written in different languages.

Is there a way to make the home button go to the homepage of the same language?
i.e. If I were reading a French article with the URL $base/fr/article, clicking on the home button would get me back to $base/fr instead of $base.

Currently, the home button reads the config file for entry config.extra.logo_home_link.
I added the following to my config.toml, but it didn’t work.

[languages.fr.extra]
logo_home_link = "$base/fr"

I also thought about adding an index.fr.html in templates/ but it doesn’t seem to be the most modular option, nor do I know if it would work.

Thanks a lot for the zola project, have a nice day :slight_smile:

1 Like

You can use the lang variable.