allow site to be built with empty content

Build the site even if there isn't anything in the content directory.
This commit is contained in:
Billie H. Cleek 2014-06-29 21:35:34 -07:00 committed by spf13
parent 73dd4f38d0
commit aa42f4309c

View file

@ -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