aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/content_map_page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-11-18 15:01:09 +0100
committerBjørn Erik Pedersen <[email protected]>2024-11-18 16:20:25 +0100
commite917401c710d4213e17b7174ed18f042784ff6d6 (patch)
tree7a15cc25ad03a57c62a78a49ed492f13d8fa97fe /hugolib/content_map_page.go
parenteb298144b63cfa9e6720ec5731c7687d7df15955 (diff)
downloadhugo-e917401c710d4213e17b7174ed18f042784ff6d6.tar.gz
hugo-e917401c710d4213e17b7174ed18f042784ff6d6.zip
Make sure term is always set
Fixes #13063
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r--hugolib/content_map_page.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go
index 8c9e4a31a..a336c8489 100644
--- a/hugolib/content_map_page.go
+++ b/hugolib/content_map_page.go
@@ -1595,6 +1595,10 @@ func (sa *sitePagesAssembler) applyAggregatesToTaxonomiesAndTerms() error {
}
func (sa *sitePagesAssembler) assembleTermsAndTranslations() error {
+ if sa.pageMap.cfg.taxonomyTermDisabled {
+ return nil
+ }
+
var (
pages = sa.pageMap.treePages
entries = sa.pageMap.treeTaxonomyEntries
@@ -1612,10 +1616,6 @@ func (sa *sitePagesAssembler) assembleTermsAndTranslations() error {
return false, nil
}
- if sa.pageMap.cfg.taxonomyTermDisabled {
- return false, nil
- }
-
for _, viewName := range views {
vals := types.ToStringSlicePreserveString(getParam(ps, viewName.plural, false))
if vals == nil {
@@ -1674,6 +1674,7 @@ func (sa *sitePagesAssembler) assembleTermsAndTranslations() error {
})
}
}
+
return false, nil
},
}