diff --git a/hugolib/site.go b/hugolib/site.go index d6cd343cd..a64475216 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -163,6 +163,9 @@ func (s *Site) loadTemplates() { } if !fi.IsDir() { + if ignoreDotFile(path) { + return nil + } filetext, err := ioutil.ReadFile(path) if err != nil { return err