mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 00:32:51 +00:00
tpl: Prevent isBaseTemplate() from matching "baseof" in dir
Fixes #4809
This commit is contained in:
parent
0c6c98e401
commit
c3115292a7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue