From 9cd378a2d27ad4c9cb2e46d12022e68e23f96ea7 Mon Sep 17 00:00:00 2001 From: Alex Ivanov Date: Sun, 10 Nov 2019 01:27:11 +0300 Subject: Multilang (#93) * Add i18n langs trans example * partials * Update sample site * cc of variables of config * Clean PR * revert master data --- exampleSite/config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'exampleSite/config.yaml') diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 36b3b5d..5ed865e 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -13,6 +13,17 @@ enableGitInfo: true # pygmentsStyle: monokailight pygmentsCodeFences: true +# Multilang config +defaultContentLanguage: en + +languages: + en: + languageName: English + weight: 1 + ru: + languageName: Russian + weight: 2 + params: # (Optional, default 6) Set how many table of contents levels to be showed on page. # Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/) -- cgit v1.2.3