Do not count the index as a section when printing

This commit is contained in:
Vincent Prouillet 2017-05-12 21:30:59 +09:00
parent c791dffae5
commit ab3e04c9e5

View file

@ -15,7 +15,7 @@ fn notify_site_size(site: &Site) {
"-> Creating {} pages ({} orphan) and {} sections",
site.pages.len(),
site.get_all_orphan_pages().len(),
site.sections.len()
site.sections.len() - 1, // -1 since we do not the index as a section
);
}