hugolib: Don't report taxonomy count if disabled

This commit is contained in:
Bjørn Erik Pedersen 2017-03-08 14:19:23 +01:00
parent 4bfa189031
commit a2a8a651f7

View file

@ -1694,11 +1694,14 @@ func (s *Site) Stats() {
s.Log.FEEDBACK.Printf("%d other pages created\n", (len(s.Pages) - len(s.RegularPages)))
s.Log.FEEDBACK.Printf("%d non-page files copied\n", len(s.Files))
s.Log.FEEDBACK.Printf("%d paginator pages created\n", s.Info.paginationPageCount)
if s.isEnabled(KindTaxonomy) {
taxonomies := s.Language.GetStringMapString("taxonomies")
for _, pl := range taxonomies {
s.Log.FEEDBACK.Printf("%d %s created\n", len(s.Taxonomies[pl]), pl)
}
}
}