mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
tpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock exists
Fixes #13595
This commit is contained in:
@@ -208,12 +208,9 @@ func (this TemplateDescriptor) doCompare(category Category, isEmbedded bool, oth
|
||||
w.w1 += weightVariant1
|
||||
}
|
||||
|
||||
if other.Variant2 != "" && other.Variant2 == this.Variant2 {
|
||||
if other.Variant1 != "" && other.Variant2 == this.Variant2 {
|
||||
w.w1 += weightVariant2
|
||||
}
|
||||
if other.Variant2 != "" && this.Variant2 == "" {
|
||||
w.w1--
|
||||
}
|
||||
|
||||
return w
|
||||
}
|
||||
|
Reference in New Issue
Block a user