mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 14:21:23 +00:00
hugolib: Don't report taxonomy count if disabled
This commit is contained in:
parent
4bfa189031
commit
a2a8a651f7
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue