aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/config.toml
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-19 23:56:45 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-19 23:56:45 +0100
commite3dc5c5723ecff8ea6a7fc5e70555e27280223e6 (patch)
tree93ff63bc5a05cbde1bd77253bdbe69434c1157c2 /exampleSite/config.toml
parent707f9e64662d5346fd5e1bfa70060d4f692590c5 (diff)
#99, Move translations to separate content folders
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r--exampleSite/config.toml10
1 files changed, 7 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 27e1b13..eeaabea 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -13,20 +13,24 @@ enableGitInfo = true
# pygmentsStyle = 'monokailight'
pygmentsCodeFences = true
-# Multilang config
-defaultContentLanguage = 'en'
-
+# Multi-lingual mode config
+# There are different options to translate files
+# See https://gohugo.io/content-management/multilingual/#translation-by-filename
+# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
[languages]
[languages.en]
languageName = 'English'
+ contentDir = 'content'
weight = 1
[languages.ru]
languageName = 'Russian'
+ contentDir = 'content.ru'
weight = 2
[languages.cn]
languageName = 'Chinese'
+ contentDir = 'content.cn'
weight = 3
[params]