Browse Source

Copy relevant assets in case of colocation for section

index-subcmd
cmal 6 years ago
parent
commit
15190962ba
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      components/site/src/lib.rs

+ 6
- 0
components/site/src/lib.rs 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 {
section
.pages


Loading…
Cancel
Save