diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index 3b876fb..ae2d92b 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -537,7 +537,6 @@ impl Site { self.compile_sass(&self.base_path)?; } - self.process_images()?; self.copy_static_directories()?; if self.config.build_search_index { @@ -577,6 +576,9 @@ impl Site { self.render_404()?; self.render_robots()?; self.render_taxonomies()?; + // We process images at the end as we might have picked up images to process from markdown + // or from templates + self.process_images()?; Ok(()) } diff --git a/src/console.rs b/src/console.rs index 0241cf3..fac9f29 100644 --- a/src/console.rs +++ b/src/console.rs @@ -53,7 +53,7 @@ pub fn notify_site_size(site: &Site) { "-> Creating {} pages ({} orphan), {} sections, and processing {} images", library.pages().len(), site.get_number_orphan_pages(), - library.sections().len() - 1, // -1 since we do not the index as a section + library.sections().len() - 1, // -1 since we do not count the index as a section there site.num_img_ops(), ); }