tpl: Fix language handling in partials

We now use the same code path for all templates re this.

Fixes #13612
This commit is contained in:
Bjørn Erik Pedersen
2025-04-15 09:05:24 +02:00
parent 01667275d4
commit d61b9fc605
4 changed files with 55 additions and 44 deletions

View File

@@ -180,7 +180,7 @@ func (t *pageTrees) collectAndMarkStaleIdentities(p *paths.Path) []identity.Iden
if p.Component() == files.ComponentFolderContent {
// It may also be a bundled content resource.
key := p.ForBundleType(paths.TypeContentResource).Base()
key := p.ForType(paths.TypeContentResource).Base()
tree = t.treeResources
nCount = 0
tree.ForEeachInDimension(key, doctree.DimensionLanguage.Index(),