mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
hugolib: Put back taxonomy term paginator logic lost in rebase
This commit is contained in:
1 parent
50c64415aa
commit
a8244658f7
2 files changed
+2
-2
No files matched your search
@@ -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