mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-02 22:52:51 +02:00
tpl/templates: Fix templates.Exist issue with base templates
Fixes #9477
This commit is contained in:
@@ -34,6 +34,5 @@ type Namespace struct {
|
||||
// Note that this is the Unix-styled relative path including filename suffix,
|
||||
// e.g. partials/header.html
|
||||
func (ns *Namespace) Exists(name string) bool {
|
||||
_, found := ns.deps.Tmpl().Lookup(name)
|
||||
return found
|
||||
return ns.deps.Tmpl().HasTemplate(name)
|
||||
}
|
||||
|
Reference in New Issue
Block a user