From aa42f4309c3c40b4449f2574df06c519dff73016 Mon Sep 17 00:00:00 2001 From: "Billie H. Cleek" Date: Sun, 29 Jun 2014 21:35:34 -0700 Subject: [PATCH] allow site to be built with empty content Build the site even if there isn't anything in the content directory. --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/site.go b/hugolib/site.go index f3d9bc6ae..0eddb0318 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