Copy relevant assets in case of colocation for section

This commit is contained in:
cmal 2018-08-07 12:14:59 +02:00
parent 8473dff23d
commit 15190962ba

View file

@ -837,6 +837,12 @@ impl Site {
} }
} }
// Copy any asset we found previously into the same directory as the index.html
for asset in &section.assets {
let asset_path = asset.as_path();
copy(&asset_path, &output_path.join(asset_path.file_name().unwrap()))?;
}
if render_pages { if render_pages {
section section
.pages .pages