1
Fork 0

Add missing suffix for sidebar-items script path

This commit is contained in:
Guillaume Gomez 2022-01-10 21:01:09 +01:00
parent f7bb8e3677
commit 881b427fa3
2 changed files with 6 additions and 2 deletions

View file

@ -1823,7 +1823,11 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) {
ty = it.type_(),
path = relpath
);
write!(buffer, "<script defer src=\"{}sidebar-items.js\"></script>", relpath);
write!(
buffer,
"<script defer src=\"{}sidebar-items{}.js\"></script>",
relpath, cx.shared.resource_suffix
);
// Closes sidebar-elems div.
buffer.write_str("</div>");
}