pub fn render_aliases(&self) -> Result<()> {
        ensure_directory_exists(&self.output_path)?;
        let library = self.library.read().unwrap();
        for (_, page) in library.pages() {
            for alias in &page.meta.aliases {
                self.render_alias(&alias, &page.permalink)?;
            }
        }
        for (_, section) in library.sections() {
            for alias in &section.meta.aliases {
                self.render_alias(&alias, &section.permalink)?;
            }
        }
        Ok(())
    }
/// Renders all the aliases for each page/section: a magic HTML template that redirects to
/// the canonical one
Renders all the aliases for each page/section: a magic HTML template that redirects to
the canonical one
Renders all the aliases for each page / section : a magic HTML template that redirects to the canonical one
pub fn render_aliases(&self) -> Result<()> {
        ensure_directory_exists(&self.output_path)?;
        let library = self.library.read().unwrap();
        for (_, page) in library.pages() {
            for alias in &page.meta.aliases {
                self.render_alias(&alias, &page.permalink)?;
            }
        }
        for (_, section) in library.sections() {
            for alias in &section.meta.aliases {
                self.render_alias(&alias, &section.permalink)?;
            }
        }
        Ok(())
    }
pub fn render_aliases ( & self ) -> Result < ( ) > { ensure_directory_exists ( & self . output_path ) ? ; let library = self . library . read ( ) . unwrap ( ) ; for ( _ , page ) in library . pages ( ) { for alias in & page . meta . aliases { self . render_alias ( & alias , & page . permalink ) ? ; } } for ( _ , section ) in library . sections ( ) { for alias in & section . meta . aliases { self . render_alias ( & alias , & section . permalink ) ? ; } } Ok ( ( ) ) }
Renders all the aliases for each page/section: a magic HTML template that redirects to
the canonical one
Renders all the aliases for each page / section : a magic HTML template that redirects to the canonical one
&self
&self