pub fn check_site_summary(site: &Site) {
    let library = site.library.read().unwrap();
    let orphans = library.get_all_orphan_pages();
    println!(
        "-> Site content: {} pages ({} orphan), {} sections",
        library.pages().len(),
        orphans.len(),
        library.sections().len() - 1, // -1 since we do not count the index as a section there
    );

    for orphan in orphans {
        warn(&format!("Orphan page found: {}", orphan.path));
    }
}
/// Display in the console only the number of pages/sections in the site
Display in the console only the number of pages/sections in the site
Display in the console only the number of pages / sections in the site
pub fn check_site_summary(site: &Site) {
    let library = site.library.read().unwrap();
    let orphans = library.get_all_orphan_pages();
    println!(
        "-> Site content: {} pages ({} orphan), {} sections",
        library.pages().len(),
        orphans.len(),
        library.sections().len() - 1, // -1 since we do not count the index as a section there
    );
    for orphan in orphans {
        warn(&format!("Orphan page found: {}", orphan.path));
    }
}
pub fn check_site_summary ( site : & Site ) { let library = site . library . read ( ) . unwrap ( ) ; let orphans = library . get_all_orphan_pages ( ) ; println ! ( " " library pages ( ) len ( ) orphans len ( ) library sections ( ) len ( ) 1 // -1 since we do not count the index as a section there ) ; for orphan in orphans { warn ( & format ! ( " " orphan path ) ) ; } }
Display in the console only the number of pages/sections in the site
Display in the console only the number of pages / sections in the site
site
&Site
site
&Site