mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 18:24:41 -04:00
Update multilingual.md
This commit is contained in:
parent
62bf0f184a
commit
a90a00bb05
@ -29,6 +29,7 @@ The following is an example of a site configuration for a multilingual Hugo proj
|
|||||||
DefaultContentLanguage = "en"
|
DefaultContentLanguage = "en"
|
||||||
copyright = "Everything is mine"
|
copyright = "Everything is mine"
|
||||||
|
|
||||||
|
[params]
|
||||||
[params.navigation]
|
[params.navigation]
|
||||||
help = "Help"
|
help = "Help"
|
||||||
|
|
||||||
@ -48,8 +49,7 @@ linkedin = "https://linkedin.com/fr/whoever"
|
|||||||
help = "Aide"
|
help = "Aide"
|
||||||
{{< /code-toggle >}}
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
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). This also works for `params`, as demonstrated witgh `help` above: You will get the value `Aide` in French and `Help` in all the languages without this parameter set.
|
||||||
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,
|
||||||
and taxonomy pages will be rendered below `/` in English (your default content language) and then below `/fr` in French.
|
and taxonomy pages will be rendered below `/` in English (your default content language) and then below `/fr` in French.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user