mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
hugolib: Put back taxonomy term paginator logic lost in rebase
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user