mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
tpl: Fix when layout specified in front matter and no match is found
Fixes #13628
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user