From d5f55430615265f18b8d50d215c536a14c21a7b4 Mon Sep 17 00:00:00 2001
From: spf13 <steve.francia@gmail.com>
Date: Fri, 26 Jul 2013 09:28:26 -0400
Subject: [PATCH] create content at any level of nesting

---
 hugolib/site.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hugolib/site.go b/hugolib/site.go
index 85ddd655..7066dfbf 100644
--- 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()
-- 
2.30.2