mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Fix rebuild logic when editing template using a base template
We have been doing too much work in that case. Fixes #6968
This commit is contained in:
@@ -383,9 +383,15 @@ func (t *templateHandler) LookupVariant(name string, variants tpl.TemplateVarian
|
||||
}
|
||||
|
||||
func (t *templateHandler) HasTemplate(name string) bool {
|
||||
|
||||
if _, found := t.baseof[name]; found {
|
||||
return true
|
||||
}
|
||||
|
||||
if _, found := t.needsBaseof[name]; found {
|
||||
return true
|
||||
}
|
||||
|
||||
_, found := t.Lookup(name)
|
||||
return found
|
||||
}
|
||||
|
Reference in New Issue
Block a user