Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index 457a5cb92..b6313e1e5 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -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
}