Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-08-08 14:55:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-06 18:32:18 +0300
commit8da040342eb0a3098e54dc6ed2cb10bac6173230 (patch)
tree6ebd4750103cb1ac8a2b1aa6ec4bdb8e85d46ea8 /docs
parentd953e39e63deac608e7f1442a6c0d5b2fe56180e (diff)
Render main content language in root by default
Fixes #2312
Diffstat (limited to 'docs')
-rw-r--r--docs/content/content/multilingual.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/content/content/multilingual.md b/docs/content/content/multilingual.md
index 35dd1382e..f23a6afcf 100644
--- a/docs/content/content/multilingual.md
+++ b/docs/content/content/multilingual.md
@@ -14,6 +14,8 @@ Hugo supports multiple languages side-by-side (added in `Hugo 0.17`). Define the
Example:
```
+DefaultContentLanguage = "en"
+
Languages:
en:
weight: 1
@@ -34,7 +36,9 @@ Anything not defined in a `[lang]:` block will fall back to the global
value for that key (like `copyright` for the English (`en`) language in this example).
With the config above, all content, sitemap, RSS feeds, paginations
-and taxonomy pages will be rendered below `/en` in English, and below `/fr` in French.
+and taxonomy pages will be rendered below `/` in English (your default content language), and below `/fr` in French.
+
+If you want all of the languages to be put below their respective language code, enable `DefaultContentLanguageInSubdir: true` in your configuration.
Only the obvious non-global options can be overridden per language. Examples of global options are `BaseURL`, `BuildDrafts`, etc.