hugolib: Make sure that empty terms lists are still created

Fixes #2977
This commit is contained in:
Bjørn Erik Pedersen
2017-03-01 17:07:38 +01:00
parent 3669015f56
commit 9671162a22
2 changed files with 11 additions and 7 deletions

View File

@@ -351,14 +351,14 @@ func (h *HugoSites) createMissingPages() error {
newPages = append(newPages, n)
}
}
}
if s.isEnabled(KindTaxonomyTerm) {
if !foundTaxonomyTermsPage {
foundTaxonomyTermsPage = true
n := s.newTaxonomyTermsPage(plural)
s.Pages = append(s.Pages, n)
newPages = append(newPages, n)
}
if s.isEnabled(KindTaxonomyTerm) {
if !foundTaxonomyTermsPage {
foundTaxonomyTermsPage = true
n := s.newTaxonomyTermsPage(plural)
s.Pages = append(s.Pages, n)
newPages = append(newPages, n)
}
}
}