pub fn warn_about_ignored_pages(site: &Site) {
    let library = site.library.read().unwrap();
    let ignored_pages: Vec<_> = library
        .sections_values()
        .iter()
        .flat_map(|s| s.ignored_pages.iter().map(|k| library.get_page_by_key(*k).file.path.clone()))
        .collect();

    if !ignored_pages.is_empty() {
        warn(&format!(
            "{} page(s) ignored (missing date or weight in a sorted section):",
            ignored_pages.len()
        ));
        for path in ignored_pages {
            warn(&format!("- {}", path.display()));
        }
    }
}
/// Display a warning in the console if there are ignored pages in the site
Display a warning in the console if there are ignored pages in the site
Display a warning in the console if there are ignored pages in the site
pub fn warn_about_ignored_pages(site: &Site) {
    let library = site.library.read().unwrap();
    let ignored_pages: Vec<_> = library
        .sections_values()
        .iter()
        .flat_map(|s| s.ignored_pages.iter().map(|k| library.get_page_by_key(*k).file.path.clone()))
        .collect();
    if !ignored_pages.is_empty() {
        warn(&format!(
            "{} page(s) ignored (missing date or weight in a sorted section):",
            ignored_pages.len()
        ));
        for path in ignored_pages {
            warn(&format!("- {}", path.display()));
        }
    }
}
pub fn warn_about_ignored_pages ( site : & Site ) { let library = site . library . read ( ) . unwrap ( ) ; let ignored_pages : Vec < _ > = library . sections_values ( ) . iter ( ) . flat_map ( | s | s . ignored_pages . iter ( ) . map ( | k | library . get_page_by_key ( * k ) . file . path . clone ( ) ) ) . collect ( ) ; if ! ignored_pages . is_empty ( ) { warn ( & format ! ( " " ignored_pages len ( ) ) ) ; for path in ignored_pages { warn ( & format ! ( " " path display ( ) ) ) ; } } }
Display a warning in the console if there are ignored pages in the site
Display a warning in the console if there are ignored pages in the site
site
&Site
site
&Site