1
Fork 0

Don't generate suffix for source-file.js

This commit is contained in:
Guillaume Gomez 2018-12-03 22:37:34 +01:00
parent 1b432a612f
commit 82a7b6fde8
2 changed files with 4 additions and 4 deletions

View file

@ -194,10 +194,9 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
.collect::<String>(),
suffix=page.resource_suffix,
extra_scripts=extra_scripts.iter().map(|e| {
format!("<script src=\"{root_path}{extra_script}{suffix}.js\"></script>",
format!("<script src=\"{root_path}{extra_script}.js\"></script>",
root_path=page.root_path,
extra_script=e,
suffix=page.resource_suffix)
extra_script=e)
}).collect::<String>(),
)
}