mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
tpl: Prevent isBaseTemplate() from matching "baseof" in dir
Fixes #4809
This commit is contained in:
1 parent
0c6c98e401
commit
c3115292a7
1 file changed
+1
-1
@@ -726,5 +726,5 @@ func isBackupFile(path string) bool {
|
|||||||
const baseFileBase = "baseof"
|
const baseFileBase = "baseof"
|
||||||
|
|
||||||
func isBaseTemplate(path string) bool {
|
func isBaseTemplate(path string) bool {
|
||||||
return strings.Contains(path, baseFileBase)
|
return strings.Contains(filepath.Base(path), baseFileBase)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user