mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 13:24:45 -04:00
Fixes #222
This commit is contained in:
parent
cca35dbe4d
commit
8f91f62d8e
@ -17,7 +17,7 @@ aliases: [/content/multilingual/,/content-management/multilingual/,/tutorials/cr
|
|||||||
toc: true
|
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
|
## Configure Languages
|
||||||
|
|
||||||
@ -30,24 +30,24 @@ copyright = "Everything is mine"
|
|||||||
[params.navigation]
|
[params.navigation]
|
||||||
help = "Help"
|
help = "Help"
|
||||||
|
|
||||||
[Languages]
|
[languages]
|
||||||
[Languages.en]
|
[languages.en]
|
||||||
title = "My blog"
|
title = "My blog"
|
||||||
weight = 1
|
weight = 1
|
||||||
linkedin = "english-link"
|
linkedin = "english-link"
|
||||||
|
|
||||||
[Languages.fr]
|
[languages.fr]
|
||||||
copyright = "Tout est à moi"
|
copyright = "Tout est à moi"
|
||||||
title = "Mon blog"
|
title = "Mon blog"
|
||||||
weight = 2
|
weight = 2
|
||||||
linkedin = "lien-francais"
|
linkedin = "lien-francais"
|
||||||
|
|
||||||
# skip params key for front matter
|
# skip params key for front matter
|
||||||
[Languages.fr.navigation]
|
[languages.fr.navigation]
|
||||||
help = "Aide"
|
help = "Aide"
|
||||||
{{< /code >}}
|
{{< /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).
|
value for that key (e.g., `copyright` for the English [`en`] language).
|
||||||
|
|
||||||
With the configuration above, all content, sitemap, RSS feeds, paginations,
|
With the configuration above, all content, sitemap, RSS feeds, paginations,
|
||||||
@ -118,17 +118,17 @@ tag = "tags"
|
|||||||
angledQuotes = true
|
angledQuotes = true
|
||||||
hrefTargetBlank = true
|
hrefTargetBlank = true
|
||||||
|
|
||||||
[Languages]
|
[languages]
|
||||||
[Languages.en]
|
[languages.en]
|
||||||
weight = 1
|
weight = 1
|
||||||
title = "English"
|
title = "English"
|
||||||
[Languages.en.blackfriday]
|
[languages.en.blackfriday]
|
||||||
angledQuotes = false
|
angledQuotes = false
|
||||||
|
|
||||||
[Languages.fr]
|
[languages.fr]
|
||||||
weight = 2
|
weight = 2
|
||||||
title = "Français"
|
title = "Français"
|
||||||
[Languages.fr.Taxonomies]
|
[languages.fr.Taxonomies]
|
||||||
plaque = "plaques"
|
plaque = "plaques"
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user