#99, Move translations to separate content folders
This commit is contained in:
parent
707f9e6466
commit
e3dc5c5723
4 changed files with 14 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -13,18 +13,22 @@ 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:
|
||||
en:
|
||||
languageName: English
|
||||
contentDir: content
|
||||
weight: 1
|
||||
ru:
|
||||
languageName: Russian
|
||||
contentDir: content.ru
|
||||
weight: 2
|
||||
cn:
|
||||
languageName: Chinese
|
||||
contentDir: content.cn
|
||||
weight: 3
|
||||
|
||||
params:
|
||||
|
|
Loading…
Reference in a new issue