l.params[k] = v
}
+func (l *Language) GetBool(key string) bool { return cast.ToBool(l.Get(key)) }
+
func (l *Language) GetString(key string) string { return cast.ToString(l.Get(key)) }
+
func (ml *Language) GetStringMap(key string) map[string]interface{} {
return cast.ToStringMap(ml.Get(key))
}
Languages: languages,
defaultContentLanguageInSubdir: defaultContentInSubDir,
GoogleAnalytics: lang.GetString("GoogleAnalytics"),
- RSSLink: permalinkStr(viper.GetString("RSSUri")),
+ RSSLink: permalinkStr(lang.GetString("RSSUri")),
BuildDrafts: viper.GetBool("BuildDrafts"),
canonifyURLs: viper.GetBool("CanonifyURLs"),
- preserveTaxonomyNames: viper.GetBool("PreserveTaxonomyNames"),
+ preserveTaxonomyNames: lang.GetBool("PreserveTaxonomyNames"),
AllPages: &s.AllPages,
Pages: &s.Pages,
rawAllPages: &s.rawAllPages,