diff options
author | Alex Ivanov <ai@contributor.pw> | 2019-11-10 01:27:11 +0300 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 20:34:46 +0100 |
commit | 9cd378a2d27ad4c9cb2e46d12022e68e23f96ea7 (patch) | |
tree | 7ed204e6b8781a9d92175de669b812efc5fe8733 /exampleSite/config.toml | |
parent | 890cc000bbe3d5c6058de507e57dc8a4ab095f23 (diff) |
Multilang (#93)
* Add i18n langs trans example
* partials
* Update sample site
* cc of variables of config
* Clean PR
* revert master data
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r-- | exampleSite/config.toml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 779c74f..a255c7d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,6 +13,17 @@ enableGitInfo = true # pygmentsStyle = 'monokailight' pygmentsCodeFences = true +# Multilang config +defaultContentLanguage = 'en' + +[languages] + [languages.en] + languageName = 'English' + weight = 1 + [languages.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/) |