From: spf13 Date: Fri, 26 Jul 2013 13:28:26 +0000 (-0400) Subject: create content at any level of nesting X-Git-Tag: v0.8~15 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d5f55430;p=brevno-suite%2Fhugo create content at any level of nesting --- 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()