added multilanguage support
This commit is contained in:
48
README.md
48
README.md
@@ -47,19 +47,51 @@ Enable listing of pages in the homepage by adding the following code to `config.
|
||||
list_pages = true
|
||||
```
|
||||
|
||||
#### Header and Footer Nav Links
|
||||
#### Multilanguage
|
||||
|
||||
Customize the header and footer navigation links with the following code in the `extra` section of `config.toml`:
|
||||
The theme has a built-in feature that allows you to use multiple languages. For detailed instructions on how to use this feature, you can refer to the [Zola Multilingual documentation](https://www.getzola.org/documentation/content/multilingual/). This documentation provides additional information on how to make the most out of this multilingual capability.
|
||||
|
||||
```toml
|
||||
[languages.en]
|
||||
weight = 1
|
||||
title = "anemone"
|
||||
languageName = "English"
|
||||
languageCode = "en"
|
||||
relativeURL = false
|
||||
|
||||
[languages.fr]
|
||||
weight = 2
|
||||
title = "anemone"
|
||||
languageName = "Français"
|
||||
languageCode = "fr"
|
||||
relativeURL = false
|
||||
|
||||
taxonomies = [
|
||||
{name = "tags", feed = true},
|
||||
]
|
||||
```
|
||||
#### Multilanguage-Ready Navigation Bar
|
||||
|
||||
Customize the header navigation links with the following code in the `extra` section of `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra]
|
||||
|
||||
header_nav = [
|
||||
{ name = "/home/", url = "/" },
|
||||
{ name = "/about/", url = "/about" },
|
||||
{ name = "/journal/", url = "/journal" },
|
||||
{ name = "/blog/", url = "/blog" },
|
||||
]
|
||||
[[extra.header_nav]]
|
||||
en = { name = "/home/", url = "/" }
|
||||
fr = { name = "/accueil/", url = "/fr" }
|
||||
|
||||
[[extra.header_nav]]
|
||||
en = { name = "/about/", url = "/about" }
|
||||
fr = { name = "/concernant/", url = "/about" }
|
||||
|
||||
[[extra.header_nav]]
|
||||
en = { name = "/journal/", url = "/journal" }
|
||||
fr = { name = "/journal/", url = "/journal" }
|
||||
|
||||
[[extra.header_nav]]
|
||||
en = { name = "/blog/", url = "/blog" }
|
||||
fr = { name = "/blog/", url = "/blog" }
|
||||
```
|
||||
|
||||
### Webrings
|
||||
|
||||
Reference in New Issue
Block a user