Handle Taxonomy permalinks
authorBrian Chen <brian.chxn@gmail.com>
Tue, 7 Nov 2017 03:58:41 +0000 (22:58 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 7 Nov 2017 22:05:48 +0000 (23:05 +0100)
commitd9a78b61adefe8e1803529f4774185874af85148
treee53d6e6a8b5588a99a30632ce355c1df34d2e043
parent23ba779fab90ce45cddd68b4f49a2515ce6d4878
Handle Taxonomy permalinks

Return the correct virtual Section for Taxonomy and TaxonomyTerm.
Restrict permalink expansion to only Pages and Taxonomies, but then
actually use expanded permalinks even for non-Pages.

Fixes #1208.
docs/content/content-management/taxonomies.md
docs/content/content-management/urls.md
hugolib/page.go
hugolib/page_paths.go
hugolib/taxonomy_test.go