Skip to content

Commit

Permalink
Improve template a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 18, 2024
1 parent 8c88481 commit 20c0e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MDBookSidebarScrollbox extends HTMLElement {
super();
}
connectedCallback() {
this.innerHTML = {{ crate::renderer::html_renderer::toc::render(html_config, chapters, false)|fmt("'{}'") }};
this.innerHTML = '{{ crate::renderer::html_renderer::toc::render(html_config, chapters, false) }}';
// Set the current, active page, and reveal it if it's hidden
let current_page = document.location.href.toString();
if (current_page.endsWith("/")) {
Expand Down

0 comments on commit 20c0e56

Please sign in to comment.