Revert "hugolib: Render paginator pages for taxonomy terms"
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 25 Feb 2017 17:10:51 +0000 (18:10 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 25 Feb 2017 17:10:51 +0000 (18:10 +0100)
This reverts commit 4d679627ecf7801ee80cbd37909155728249829e.

Will have to think a little more about this.

hugolib/site_render.go

index f3176f5b65cf0c80b92a10d6b5e64d36fd4b30c0..5709aa83a9cb30107ae0d76c825d978caf744ea5 100644 (file)
@@ -71,7 +71,8 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
                        results <- err
                }
 
-               if p.IsNode() {
+               // Taxonomy terms have no page set to paginate, so skip that for now.
+               if p.IsNode() && p.Kind != KindTaxonomyTerm {
                        if err := s.renderPaginator(p); err != nil {
                                results <- err
                        }