mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Rename ignoreDotFile to isDotFile (which is what it is)
This commit is contained in:
@@ -1198,7 +1198,7 @@ func (t *GoHtmlTemplate) GenerateTemplateNameFrom(base, path string) string {
|
|||||||
return filepath.ToSlash(name)
|
return filepath.ToSlash(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ignoreDotFile(path string) bool {
|
func isDotFile(path string) bool {
|
||||||
return filepath.Base(path)[0] == '.'
|
return filepath.Base(path)[0] == '.'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1214,7 +1214,7 @@ func (t *GoHtmlTemplate) loadTemplates(absPath string, prefix string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !fi.IsDir() {
|
if !fi.IsDir() {
|
||||||
if ignoreDotFile(path) {
|
if isDotFile(path) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user