mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
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:
@@ -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")))
|
||||
|
Reference in New Issue
Block a user