mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 12:46:44 +00:00
#99, Move translations to separate content folders
This commit is contained in:
parent
707f9e6466
commit
e3dc5c5723
@ -13,20 +13,24 @@ enableGitInfo = true
|
|||||||
# pygmentsStyle = 'monokailight'
|
# pygmentsStyle = 'monokailight'
|
||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
|
|
||||||
# Multilang config
|
# Multi-lingual mode config
|
||||||
defaultContentLanguage = 'en'
|
# 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]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
languageName = 'English'
|
languageName = 'English'
|
||||||
|
contentDir = 'content'
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[languages.ru]
|
[languages.ru]
|
||||||
languageName = 'Russian'
|
languageName = 'Russian'
|
||||||
|
contentDir = 'content.ru'
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[languages.cn]
|
[languages.cn]
|
||||||
languageName = 'Chinese'
|
languageName = 'Chinese'
|
||||||
|
contentDir = 'content.cn'
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
@ -13,18 +13,22 @@ enableGitInfo: true
|
|||||||
# pygmentsStyle: monokailight
|
# pygmentsStyle: monokailight
|
||||||
pygmentsCodeFences: true
|
pygmentsCodeFences: true
|
||||||
|
|
||||||
# Multilang config
|
# Multi-lingual mode config
|
||||||
defaultContentLanguage: en
|
# 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:
|
en:
|
||||||
languageName: English
|
languageName: English
|
||||||
|
contentDir: content
|
||||||
weight: 1
|
weight: 1
|
||||||
ru:
|
ru:
|
||||||
languageName: Russian
|
languageName: Russian
|
||||||
|
contentDir: content.ru
|
||||||
weight: 2
|
weight: 2
|
||||||
cn:
|
cn:
|
||||||
languageName: Chinese
|
languageName: Chinese
|
||||||
|
contentDir: content.cn
|
||||||
weight: 3
|
weight: 3
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
Loading…
Reference in New Issue
Block a user