Rework the multilingual docs

And in the same go adjusted some minor parts of the language API:

Add LanguagePrefix alias to Node and rename the Multilingual config section to Languages.

See #2309
This commit is contained in:
Bjørn Erik Pedersen
2016-08-04 12:06:29 +02:00
parent ed0985404d
commit f0b91852ea
5 changed files with 51 additions and 168 deletions

View File

@@ -13,7 +13,7 @@ import (
func readMultilingualConfiguration() (*hugolib.HugoSites, error) {
sites := make([]*hugolib.Site, 0)
multilingual := viper.GetStringMap("Multilingual")
multilingual := viper.GetStringMap("Languages")
if len(multilingual) == 0 {
// TODO(bep) multilingo langConfigsList = append(langConfigsList, hugolib.NewLanguage("en"))
sites = append(sites, hugolib.NewSite(hugolib.NewLanguage("en")))