mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
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:
1 parent
73dd4f38d0
commit
aa42f4309c
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user