shithub: hugo

Download patch

ref: ae7112977d57dddc3a4b990c9a93ae74d1c61057
parent: eb4288e3cd47fae5c519ae0fb8e654828540e7a6
author: Noah Campbell <[email protected]>
date: Fri Aug 23 09:51:59 EDT 2013

Skip "dot" files in layout

As a vim user, .filename.swp files pop up.  This change prevents hugo
from reading those files.

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -163,6 +163,9 @@
 		}
 
 		if !fi.IsDir() {
+			if ignoreDotFile(path) {
+				return nil
+			}
 			filetext, err := ioutil.ReadFile(path)
 			if err != nil {
 				return err