Fix outdated i18n setup config
This commit is contained in:
parent
4c4fad2cfb
commit
95163284e7
|
@ -10,15 +10,24 @@ To get started, you will need to add the languages you want to support
|
||||||
to your `config.toml`. For example:
|
to your `config.toml`. For example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
languages = [
|
[languages.fr]
|
||||||
{code = "fr", feed = true}, # there will be a feed for French content
|
generate_feed = true # there will be a feed for French content
|
||||||
{code = "fr", search = true}, # there will be a Search Index for French content
|
build_search_index = true
|
||||||
{code = "it"}, # there won't be a feed for Italian content
|
taxonomies = [
|
||||||
|
{name = "auteurs"},
|
||||||
|
{name = "tags"},
|
||||||
]
|
]
|
||||||
```
|
|
||||||
|
|
||||||
If you want to use per-language taxonomies, ensure you set the `lang` field in their
|
[languages.fr.translations]
|
||||||
configuration.
|
summary = "Mon blog"
|
||||||
|
|
||||||
|
[languages.it]
|
||||||
|
# Italian language doesn't have any taxonomies/feed/search index
|
||||||
|
|
||||||
|
[languages.it.translations]
|
||||||
|
summary = "Mio blog"
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Note: By default, Chinese and Japanese search indexing is not included. You can include
|
Note: By default, Chinese and Japanese search indexing is not included. You can include
|
||||||
the support by building `zola` using `cargo build --features search/indexing-ja --features search/indexing-zh`.
|
the support by building `zola` using `cargo build --features search/indexing-ja --features search/indexing-zh`.
|
||||||
|
|
Loading…
Reference in a new issue