Fix taxonomy kind template lookup issue

Fixes #12193
This commit is contained in:
Bjørn Erik Pedersen
2024-03-07 08:25:34 +01:00
parent 632ad74fc5
commit 0567a3e6f1
2 changed files with 27 additions and 0 deletions

View File

@@ -145,9 +145,11 @@ func (h *HugoSites) newPage(m *pageMeta) (*pageState, *paths.Path, error) {
// Either a taxonomy or a term.
if tc.pluralTreeKey == m.Path() {
m.pageConfig.Kind = kinds.KindTaxonomy
m.singular = tc.singular
} else {
m.pageConfig.Kind = kinds.KindTerm
m.term = m.pathInfo.Unnormalized().BaseNameNoIdentifier()
m.singular = tc.singular
}
}
} else if m.f != nil {