mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 19:21:26 +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:
parent
73dd4f38d0
commit
aa42f4309c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue