Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-01-20 15:21:50 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2015-01-20 15:21:50 +0300
commiteabe8e1a986507ce19b42046beaefd42bd1075bc (patch)
tree828394457ec8850ca4408012ac9c45a247112ff0 /tpl
parent077d726b51368bb5affb7ce5644e5b45a0f9ea42 (diff)
Rename ignoreDotFile to isDotFile (which is what it is)
Diffstat (limited to 'tpl')
-rw-r--r--tpl/template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/template.go b/tpl/template.go
index ac203af89..84a3fd146 100644
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -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
}