mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Fix YAML loading of multilingual config
And some other minor fixes from code review. Updates #2309
This commit is contained in:
@@ -777,7 +777,7 @@ func (s *Site) setupPrevNext() {
|
||||
}
|
||||
|
||||
func (s *Site) render() (err error) {
|
||||
// There are sadly some global template funcs etc. that needs the language information.
|
||||
// There are sadly some global template funcs etc. that need the language information.
|
||||
viper.Set("Multilingual", s.multilingualEnabled())
|
||||
viper.Set("CurrentContentLanguage", s.Language)
|
||||
if err = tpl.SetTranslateLang(s.Language.Lang); err != nil {
|
||||
|
Reference in New Issue
Block a user