Multilang (#93)

* Add i18n langs trans example
* partials
* Update sample site
* cc of variables of config
* Clean PR
* revert master data
This commit is contained in:
Alex Ivanov
2019-11-10 01:27:11 +03:00
committed by Alex Shpak
parent 890cc000bb
commit 9cd378a2d2
8 changed files with 147 additions and 0 deletions
+11
View File
@@ -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/)