From: Bjørn Erik Pedersen Date: Mon, 6 Mar 2017 20:21:16 +0000 (+0100) Subject: hugolib: Put back taxonomy term paginator logic lost in rebase X-Git-Tag: v0.20~101 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a8244658f74a7aabdd59dabf27df958bbe0eea45;p=brevno-suite%2Fhugo hugolib: Put back taxonomy term paginator logic lost in rebase --- diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 84f49bbc..3cd44e46 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -549,7 +549,7 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) { } // TODO(bep) output this is temporary - if p.IsNode() && p.Kind != KindTaxonomyTerm { + if p.IsNode() { p.outputTypes = outputTypesWithRSS } else { p.outputTypes = outputTypesHTML diff --git a/hugolib/site_render.go b/hugolib/site_render.go index 10d10d40..b83191cb 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -87,7 +87,7 @@ func pageRenderer(s *Site, pages <-chan *PageOutput, results chan<- error, wg *s } // Taxonomy terms have no page set to paginate, so skip that for now. - if p.IsNode() && p.Kind != KindTaxonomyTerm { + if p.IsNode() { if err := s.renderPaginator(p); err != nil { results <- err }