From 95163284e70247af7f47ae028ef2e01bdacb088c Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sat, 4 Sep 2021 08:32:45 +0200 Subject: [PATCH] Fix outdated i18n setup config --- .../documentation/content/multilingual.md | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/content/documentation/content/multilingual.md b/docs/content/documentation/content/multilingual.md index 5c78c84c..9da9eba6 100644 --- a/docs/content/documentation/content/multilingual.md +++ b/docs/content/documentation/content/multilingual.md @@ -10,15 +10,24 @@ To get started, you will need to add the languages you want to support to your `config.toml`. For example: ```toml -languages = [ - {code = "fr", feed = true}, # there will be a feed for French content - {code = "fr", search = true}, # there will be a Search Index for French content - {code = "it"}, # there won't be a feed for Italian content +[languages.fr] +generate_feed = true # there will be a feed for French content +build_search_index = true +taxonomies = [ + {name = "auteurs"}, + {name = "tags"}, ] -``` -If you want to use per-language taxonomies, ensure you set the `lang` field in their -configuration. +[languages.fr.translations] +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 the support by building `zola` using `cargo build --features search/indexing-ja --features search/indexing-zh`.