mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
Update multilingual.md (#1280)
* Update multilingual.md Fix wrong camel case * Update multilingual.md Fix the last wrong DefaultContentLanguage to defaultContentLanguage
This commit is contained in:
1 parent
5bce8db3af
commit
17da77ff1a
1 file changed
+2
-2
@@ -26,7 +26,7 @@ You should define the available languages in a `languages` section in your site
|
|||||||
The following is an example of a site configuration for a multilingual Hugo project:
|
The following is an example of a site configuration for a multilingual Hugo project:
|
||||||
|
|
||||||
{{< code-toggle file="config" >}}
|
{{< code-toggle file="config" >}}
|
||||||
DefaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
copyright = "Everything is mine"
|
copyright = "Everything is mine"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
@@ -71,7 +71,7 @@ If the default language needs to be rendered below its own language code (`/en`)
|
|||||||
|
|
||||||
Only the obvious non-global options can be overridden per language. Examples of global options are `baseURL`, `buildDrafts`, etc.
|
Only the obvious non-global options can be overridden per language. Examples of global options are `baseURL`, `buildDrafts`, etc.
|
||||||
|
|
||||||
**Please note:** use lowercase language codes, even when using regional languages (ie. use pt-pt instead of pt-PT). Currently Hugo language internals lowercase language codes, which can cause conflicts with settings like `DefaultContentLanguage` which are not lowercased. Please track the evolution of this issue in [Hugo repository issue tracker](https://github.com/gohugoio/hugo/issues/7344)
|
**Please note:** use lowercase language codes, even when using regional languages (ie. use pt-pt instead of pt-PT). Currently Hugo language internals lowercase language codes, which can cause conflicts with settings like `defaultContentLanguage` which are not lowercased. Please track the evolution of this issue in [Hugo repository issue tracker](https://github.com/gohugoio/hugo/issues/7344)
|
||||||
|
|
||||||
### Disable a Language
|
### Disable a Language
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user