mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
Rename ignoreDotFile to isDotFile (which is what it is)
This commit is contained in:
1 parent
077d726b51
commit
eabe8e1a98
1 file changed
+2
-2
+2
-2
@@ -1198,7 +1198,7 @@ func (t *GoHtmlTemplate) GenerateTemplateNameFrom(base, path string) string {
|
||||
return filepath.ToSlash(name)
|
||||
}
|
||||
|
||||
func ignoreDotFile(path string) bool {
|
||||
func isDotFile(path string) bool {
|
||||
return filepath.Base(path)[0] == '.'
|
||||
}
|
||||
|
||||
@@ -1214,7 +1214,7 @@ func (t *GoHtmlTemplate) loadTemplates(absPath string, prefix string) {
|
||||
}
|
||||
|
||||
if !fi.IsDir() {
|
||||
if ignoreDotFile(path) {
|
||||
if isDotFile(path) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user