hugolib: Populate the taxonomy term Pages list
authorAnton Staaf <github@socialhacker.com>
Sun, 5 Mar 2017 20:24:14 +0000 (12:24 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 5 Mar 2017 20:24:14 +0000 (21:24 +0100)
commitc95069990795965c34059b6844fe9fa5125be7c1
tree026805cb68b325d3bf045dc86596aba8f415f2dd
parent6c5ef71368edfae8ffc77224ff6a9ec240c39626
hugolib: Populate the taxonomy term Pages list

Previously this was left empty, but it is very handy to have a list
of term pages for a given taxonomy.  This list can now be paginated
like other page lists.  It makes it possible to render summary
content from each terms index page for instance.  It also makes it
possible to sort the term pages in the same way that other page
lists can be sorted.  An RSS feed is now generated for
KindTaxonomyTerm pages as well.

This also fixes a bug in HugoSites.createMissingPages.  Previously
it would only check for existing KindTaxonomyTerm pages if the
taxonomy had any terms defined.  So for a taxonomy with no terms
but a taxonomy terms page it would generate a second empty terms
page.
docs/content/templates/rss.md
docs/content/templates/terms.md
hugolib/node_as_page_test.go
hugolib/page.go
hugolib/site.go
hugolib/site_render.go
hugolib/taxonomy_test.go