Skip to content

Commit caa170a

Browse files
committed
Update the html and try to add the toc to sidebar
1 parent f139f22 commit caa170a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2>Quick Navigation</h2>
1919
<button onclick="toggleTOC('{{ item.title | replace: ' ', '-' }}')">Details</button>
2020
<div id="toc-{{ item.title | replace: ' ', '-' }}" class="toc-content hidden">
2121
<ul> <!-- Add this UL here -->
22-
{% assign headings = site.pages | where: "path", item.url | first %}
22+
{% assign headings = site.pages | where: "url", item.url | first %}
2323
{% if headings %}
2424
{% assign content = headings.content %}
2525
{% assign lines = content | split: '\n' %}

0 commit comments

Comments
 (0)