mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib: Fix issue with taxonomies when only some have content page
Fixes #2992
This commit is contained in:
@@ -321,9 +321,9 @@ func (h *HugoSites) createMissingPages() error {
|
||||
taxonomyTermsPages := s.findPagesByKind(KindTaxonomyTerm)
|
||||
for _, plural := range taxonomies {
|
||||
tax := s.Taxonomies[plural]
|
||||
foundTaxonomyPage := false
|
||||
foundTaxonomyTermsPage := false
|
||||
for key := range tax {
|
||||
foundTaxonomyPage := false
|
||||
if s.Info.preserveTaxonomyNames {
|
||||
key = s.PathSpec.MakePathSanitized(key)
|
||||
}
|
||||
|
Reference in New Issue
Block a user