projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb4288e
)
Skip "dot" files in layout
author
Noah Campbell
<noahcampbell@gmail.com>
Fri, 23 Aug 2013 20:51:59 +0000
(13:51 -0700)
committer
Noah Campbell
<noahcampbell@gmail.com>
Fri, 23 Aug 2013 20:58:52 +0000
(13:58 -0700)
As a vim user, .filename.swp files pop up. This change prevents hugo
from reading those files.
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index d6cd343cd2ecdde14eb18470ec94690a56208ace..a64475216f8099227a8c445f7948ee35506f0513 100644
(file)
--- 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