Update documentation for multilingual use of taxonomies (#2157)

This commit is contained in:
lfxgroove 2023-04-02 22:36:01 +02:00 committed by GitHub
parent 4e81dfb86b
commit ef45bb78b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,19 +90,20 @@ taxonomies = [
**Example 2:** (multilingual site)
```toml
# These taxonomies go in the main section
taxonomies = [
{name = "director", feed = true, lang = "fr"},
{name = "director", feed = true, lang = "eo"},
{name = "director", feed = true, lang = "en"},
{name = "genres", feed = true, lang = "fr"},
{name = "genres", feed = true, lang = "eo"},
{name = "genres", feed = true, lang = "en"},
{name = "awards", feed = true, lang = "fr"},
{name = "awards", feed = true, lang = "eo"},
{name = "awards", feed = true, lang = "en"},
{name = "release-year", feed = true, lang = "fr"},
{name = "release-year", feed = true, lang = "eo"},
{name = "release-year", feed = true, lang = "en"},
{name = "director", feed = true},
{name = "genres", feed = true},
{name = "awards", feed = true},
{name = "release-year", feed = true},
]
[languages.fr]
taxonomies = [
{name = "director", feed = true},
{name = "genres", feed = true},
{name = "awards", feed = true},
{name = "release-year", feed = true},
]
```