From 8f91f62d8e57fddbe12e5000974d643f353e6b6e Mon Sep 17 00:00:00 2001 From: Chris Rudmin Date: Sun, 5 Nov 2017 22:58:44 +0100 Subject: [PATCH] Fixes #222 --- content/content-management/multilingual.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/content-management/multilingual.md b/content/content-management/multilingual.md index 59fb46c09..08bf63edd 100644 --- a/content/content-management/multilingual.md +++ b/content/content-management/multilingual.md @@ -17,7 +17,7 @@ aliases: [/content/multilingual/,/content-management/multilingual/,/tutorials/cr toc: true --- -You should define the available languages in a `Languages` section in your site configuration. +You should define the available languages in a `languages` section in your site configuration. ## Configure Languages @@ -30,24 +30,24 @@ copyright = "Everything is mine" [params.navigation] help = "Help" -[Languages] -[Languages.en] +[languages] +[languages.en] title = "My blog" weight = 1 linkedin = "english-link" -[Languages.fr] +[languages.fr] copyright = "Tout est à moi" title = "Mon blog" weight = 2 linkedin = "lien-francais" # skip params key for front matter -[Languages.fr.navigation] +[languages.fr.navigation] help = "Aide" {{< /code >}} -Anything not defined in a `[Languages]` block will fall back to the global +Anything not defined in a `[languages]` block will fall back to the global value for that key (e.g., `copyright` for the English [`en`] language). With the configuration above, all content, sitemap, RSS feeds, paginations, @@ -118,17 +118,17 @@ tag = "tags" angledQuotes = true hrefTargetBlank = true -[Languages] -[Languages.en] +[languages] +[languages.en] weight = 1 title = "English" -[Languages.en.blackfriday] +[languages.en.blackfriday] angledQuotes = false -[Languages.fr] +[languages.fr] weight = 2 title = "Français" -[Languages.fr.Taxonomies] +[languages.fr.Taxonomies] plaque = "plaques" {{< /code >}}