mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
Update multilingual.md
This commit is contained in:
1 parent
62bf0f184a
commit
a90a00bb05
1 file changed
+2
-2
@@ -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.
|
||||||
|
|||||||
Reference in new issue
Block a user