mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
hugolib: Must update PathSpec on SiteInfo per language
This commit is contained in:
@@ -823,6 +823,7 @@ func (s *Site) setCurrentLanguageConfig() error {
|
||||
viper.Set("currentContentLanguage", s.Language)
|
||||
// Cache the current config.
|
||||
helpers.InitConfigProviderForCurrentContentLanguage()
|
||||
s.Info.pathSpec = helpers.CurrentPathSpec()
|
||||
return tpl.SetTranslateLang(s.Language)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user