hugolib: Extract the Fast Render Mode logic into a method

This also improves on the previous commit as it takes pages without content files into account.

Closes #4339
This commit is contained in:
Bjørn Erik Pedersen
2018-01-30 10:33:57 +01:00
parent 1707dae8d3
commit 94e736c5e1
3 changed files with 24 additions and 7 deletions

View File

@@ -941,7 +941,7 @@ func (s *Site) render(config *BuildCfg, outFormatIdx int) (err error) {
}
if err = s.renderPages(config.RecentlyVisited, config.whatChanged.files); err != nil {
if err = s.renderPages(config); err != nil {
return
}