summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 455efd782..e06fa76b4 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -1595,10 +1595,17 @@ func (p *Page) prepareData(s *Site) error {
case KindTaxonomyTerm:
plural := p.sections[0]
singular := s.taxonomiesPluralSingular[plural]
+ terms := s.Taxonomies[plural]
+
+ for _, tax := range terms {
+ pages = append(pages, tax.Pages()...)
+ }
+
+ pages = pages.ByWeight()
p.Data["Singular"] = singular
p.Data["Plural"] = plural
- p.Data["Terms"] = s.Taxonomies[plural]
+ p.Data["Terms"] = terms
// keep the following just for legacy reasons
p.Data["OrderedIndex"] = p.Data["Terms"]
p.Data["Index"] = p.Data["Terms"]