From e3dc5c5723ecff8ea6a7fc5e70555e27280223e6 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 19 Nov 2019 23:56:45 +0100 Subject: #99, Move translations to separate content folders --- exampleSite/config.toml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'exampleSite/config.toml') 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] -- cgit v1.2.3