mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 14:11:57 +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,10 +1694,13 @@ func (s *Site) Stats() {
|
||||||
s.Log.FEEDBACK.Printf("%d other pages created\n", (len(s.Pages) - len(s.RegularPages)))
|
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 non-page files copied\n", len(s.Files))
|
||||||
s.Log.FEEDBACK.Printf("%d paginator pages created\n", s.Info.paginationPageCount)
|
s.Log.FEEDBACK.Printf("%d paginator pages created\n", s.Info.paginationPageCount)
|
||||||
taxonomies := s.Language.GetStringMapString("taxonomies")
|
|
||||||
|
|
||||||
for _, pl := range taxonomies {
|
if s.isEnabled(KindTaxonomy) {
|
||||||
s.Log.FEEDBACK.Printf("%d %s created\n", len(s.Taxonomies[pl]), pl)
|
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