diff options
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index 15ed631c1..e5da74641 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -1774,8 +1774,8 @@ func (p *Page) prepareData(s *Site) error { case KindHome: pages = s.RegularPages case KindTaxonomy: - plural := p.sections[0] - term := p.sections[1] + plural := path.Join(p.sections[:len(p.sections)-1]...) + term := p.sections[len(p.sections)-1] if s.Info.preserveTaxonomyNames { if v, ok := s.taxonomiesOrigKey[fmt.Sprintf("%s-%s", plural, term)]; ok { @@ -1792,7 +1792,7 @@ func (p *Page) prepareData(s *Site) error { p.data["Term"] = term pages = taxonomy.Pages() case KindTaxonomyTerm: - plural := p.sections[0] + plural := path.Join(p.sections...) singular := s.taxonomiesPluralSingular[plural] p.data["Singular"] = singular |