hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit d5f55430615265f18b8d50d215c536a14c21a7b4
parent e08d14ad4956506a132fe9b7aceb0be5e07be4df
Author: spf13 <steve.francia@gmail.com>
Date:   Fri, 26 Jul 2013 09:28:26 -0400

create content at any level of nesting

Diffstat:
Mhugolib/site.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -414,7 +414,11 @@ func (s *Site) WritePublic(path string, content []byte) {
 	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()