Skip to content

Commit d0cefa9

Browse files
authored
Merge pull request creativecommons#33 from sgrepos/patch-1
Fixed anchors for sub-items in TOC
2 parents 36328ea + e61c18a commit d0cefa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/page-with-toc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% if item.children %}
1010
<ul class="toc list-unstyled pl-4">
1111
{% for subitem in item.children %}
12-
<li><a href="#{{ item.anchor }}">{{ subitem.title }}</a></li>
12+
<li><a href="#{{ subitem.anchor }}">{{ subitem.title }}</a></li>
1313
{% endfor %}
1414
</ul>
1515
{% endif %}

0 commit comments

Comments
 (0)