hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit c3115292a7f2d2623cb45054a361e997ad9330c9
parent 0c6c98e401b22fa2737bb7266742ae88722825ab
Author: Anthony Fok <foka@debian.org>
Date:   Sun,  3 Jun 2018 05:45:33 -0600

tpl: Prevent isBaseTemplate() from matching "baseof" in dir

Fixes #4809

Diffstat:
Mtpl/tplimpl/template.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
@@ -726,5 +726,5 @@ func isBackupFile(path string) bool {
 const baseFileBase = "baseof"
 
 func isBaseTemplate(path string) bool {
-	return strings.Contains(path, baseFileBase)
+	return strings.Contains(filepath.Base(path), baseFileBase)
 }