diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-06 16:24:45 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-06 18:17:30 +0100 |
commit | 146aedd7aa74654ead8afce01f63c0756bc31e71 (patch) | |
tree | a1d0cb4021c9b6920732d5301cec8d35f3da01bd /hugolib/content_map_page.go | |
parent | bd0200da6e5a1a3d635fdd62dfa267145a137edc (diff) | |
download | hugo-146aedd7aa74654ead8afce01f63c0756bc31e71.tar.gz hugo-146aedd7aa74654ead8afce01f63c0756bc31e71.zip |
Fix site.Taxonomies for taxonomies with space in name
Fixes #12001
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r-- | hugolib/content_map_page.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index 570e45bd4..75863acbd 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -1859,13 +1859,12 @@ func (m *pageMap) CreateSiteTaxonomies(ctx context.Context) error { LockType: doctree.LockTypeRead, Handle: func(s string, n contentNodeI, match doctree.DimensionFlag) (bool, error) { p := n.(*pageState) - plural := p.Section() switch p.Kind() { case kinds.KindTerm: - taxonomy := m.s.taxonomies[plural] + taxonomy := m.s.taxonomies[viewName.plural] if taxonomy == nil { - return true, fmt.Errorf("missing taxonomy: %s", plural) + return true, fmt.Errorf("missing taxonomy: %s", viewName.plural) } k := strings.ToLower(p.m.term) err := m.treeTaxonomyEntries.WalkPrefix( |