Fix disabled languages regression

Fixes #11959
This commit is contained in:
Bjørn Erik Pedersen
2024-02-01 09:37:05 +01:00
parent 5dd06b4136
commit 4174a7866b
7 changed files with 113 additions and 19 deletions

View File

@@ -166,11 +166,6 @@ func (m *pageMap) AddFi(fi hugofs.FileMetaInfo) error {
return nil
}
meta := fi.Meta()
if m.s.conf.IsLangDisabled(meta.Lang) {
return nil
}
insertResource := func(fim hugofs.FileMetaInfo) error {
pi := fi.Meta().PathInfo
key := pi.Base()
@@ -209,6 +204,7 @@ func (m *pageMap) AddFi(fi hugofs.FileMetaInfo) error {
return nil
}
meta := fi.Meta()
pi := meta.PathInfo
switch pi.BundleType() {