tpl: Fix when layout specified in front matter and no match is found

Fixes #13628
This commit is contained in:
Bjørn Erik Pedersen
2025-04-20 10:59:40 +02:00
parent a88b488181
commit 088cd2f996
2 changed files with 26 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ func (this TemplateDescriptor) doCompare(category Category, isEmbedded bool, oth
w.w2 = weight2Group1
}
if this.LayoutFromUser == "" && other.LayoutFromTemplate != "" && (other.LayoutFromTemplate == this.LayoutFromTemplate || other.LayoutFromTemplate == layoutAll) {
if other.LayoutFromTemplate != "" && (other.LayoutFromTemplate == this.LayoutFromTemplate || other.LayoutFromTemplate == layoutAll) {
w.w1 += weightLayoutStandard
w.w2 = weight2Group1