mirror of
https://github.com/getzola/zola
synced 2024-12-13 05:42:29 +00:00
Process images at the end of the build process
To also process the ones found in templates Closes #669
This commit is contained in:
parent
290029aeed
commit
b70f9f95e3
2 changed files with 4 additions and 2 deletions
|
@ -537,7 +537,6 @@ impl Site {
|
||||||
self.compile_sass(&self.base_path)?;
|
self.compile_sass(&self.base_path)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.process_images()?;
|
|
||||||
self.copy_static_directories()?;
|
self.copy_static_directories()?;
|
||||||
|
|
||||||
if self.config.build_search_index {
|
if self.config.build_search_index {
|
||||||
|
@ -577,6 +576,9 @@ impl Site {
|
||||||
self.render_404()?;
|
self.render_404()?;
|
||||||
self.render_robots()?;
|
self.render_robots()?;
|
||||||
self.render_taxonomies()?;
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ pub fn notify_site_size(site: &Site) {
|
||||||
"-> Creating {} pages ({} orphan), {} sections, and processing {} images",
|
"-> Creating {} pages ({} orphan), {} sections, and processing {} images",
|
||||||
library.pages().len(),
|
library.pages().len(),
|
||||||
site.get_number_orphan_pages(),
|
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(),
|
site.num_img_ops(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue