shithub: hugo

Download patch

ref: aa42f4309c3c40b4449f2574df06c519dff73016
parent: 73dd4f38d0ffef1de9ced3d03596afb252f69333
author: Billie H. Cleek <[email protected]>
date: Sun Jun 29 17:35:34 EDT 2014

allow site to be built with empty content

Build the site even if there isn't anything in the content directory.

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -314,7 +314,7 @@
 		panic(fmt.Sprintf("s.Source not set %s", s.absContentDir()))
 	}
 	if len(s.Source.Files()) < 1 {
-		return fmt.Errorf("No source files found in %s", s.absContentDir())
+		return
 	}
 
 	var wg sync.WaitGroup