diff options
Diffstat (limited to 'hugolib/pages_capture.go')
-rw-r--r-- | hugolib/pages_capture.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/pages_capture.go b/hugolib/pages_capture.go index b72ae7e85..8a2b875ea 100644 --- a/hugolib/pages_capture.go +++ b/hugolib/pages_capture.go @@ -222,8 +222,7 @@ func (c *pagesCollector) getLang(fi hugofs.FileMetaInfo) string { if lang != "" { return lang } - - return c.sp.DefaultContentLanguage + return c.sp.Cfg.DefaultContentLanguage() } func (c *pagesCollector) addToBundle(info hugofs.FileMetaInfo, btyp bundleDirType, bundles pageBundles) error { @@ -240,7 +239,7 @@ func (c *pagesCollector) addToBundle(info hugofs.FileMetaInfo, btyp bundleDirTyp found bool ) - source, found = bundles[c.sp.DefaultContentLanguage] + source, found = bundles[c.sp.Cfg.DefaultContentLanguage()] if !found { for _, b := range bundles { source = b |