From: Billie H. Cleek Date: Mon, 30 Jun 2014 04:35:34 +0000 (-0700) Subject: allow site to be built with empty content X-Git-Tag: v0.12~74 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aa42f4309c3c40b4449f2574df06c519dff73016;p=brevno-suite%2Fhugo allow site to be built with empty content Build the site even if there isn't anything in the content directory. --- diff --git a/hugolib/site.go b/hugolib/site.go index f3d9bc6a..0eddb031 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -314,7 +314,7 @@ func (s *Site) CreatePages() (err error) { 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