Skip to content

Commit e68573b

Browse files
committed
Fix inadvertently broken folding behavior
1 parent 27ab7eb commit e68573b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/theme/index.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@
116116
</div>
117117
</nav>
118118

119-
<script async src="{{ path_to_root }}toc.js"></script>
120-
121119
<div id="page-wrapper" class="page-wrapper">
122120

123121
<div class="page">
@@ -293,6 +291,7 @@
293291
<script src="{{ path_to_root }}searcher.js"></script>
294292
{{/if}}
295293

294+
<script src="{{ path_to_root }}toc.js"></script>
296295
<script src="{{ path_to_root }}clipboard.min.js"></script>
297296
<script src="{{ path_to_root }}highlight.js"></script>
298297
<script src="{{ path_to_root }}book.js"></script>

src/theme/toc.js.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ sidebarScrollbox.innerHTML = '{{#toc}}{{/toc}}';
1919
link.href = path_to_root + href;
2020
}
2121
// The "index" page is supposed to alias the first chapter in the book.
22+
console.log(link.href + "->" + current_page);
2223
if (link.href === current_page || (i === 0 && path_to_root === "" && current_page.endsWith("/index.html"))) {
2324
link.classList.add("active");
2425
var parent = link.parentElement;

0 commit comments

Comments
 (0)