hugolib: Fix issue with taxonomies when only some have content page

Fixes #2992
This commit is contained in:
Bjørn Erik Pedersen
2017-02-17 18:40:08 +01:00
parent 07ab7ae3d2
commit 4493e8ed9f
2 changed files with 83 additions and 1 deletions

View File

@@ -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)
}