shithub: hugo

Download patch

ref: d5f55430615265f18b8d50d215c536a14c21a7b4
parent: e08d14ad4956506a132fe9b7aceb0be5e07be4df
author: spf13 <[email protected]>
date: Fri Jul 26 05:28:26 EDT 2013

create content at any level of nesting

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -414,7 +414,11 @@
 	path, filename := filepath.Split(path)
 
 	path = filepath.FromSlash(s.c.GetAbsPath(filepath.Join(s.c.PublishDir, path)))
-	mkdirIf(path)
+	err := mkdirIf(path)
+
+	if err != nil {
+		fmt.Println(err)
+	}
 
 	file, _ := os.Create(filepath.Join(path, filename))
 	defer file.Close()