diff options
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r-- | hugolib/hugo_sites.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index fbaf27aa4..e917c3209 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -508,7 +508,11 @@ func (h *HugoSites) setupTranslations() { shouldBuild := p.shouldBuild() s.updateBuildStats(p) if shouldBuild { - s.Pages = append(s.Pages, p) + if p.headless { + s.headlessPages = append(s.headlessPages, p) + } else { + s.Pages = append(s.Pages, p) + } } } } @@ -560,6 +564,10 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) { pageChan <- p } + for _, p := range s.headlessPages { + pageChan <- p + } + close(pageChan) wg.Wait() |