File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,14 @@ <h4 class="p-table-of-contents__header">On this page</h4>
118
118
< nav class ="p-table-of-contents__nav " aria-label ="Table of contents ">
119
119
< ul class ="p-table-of-contents__list ">
120
120
{% for heading in document.headings_map %}
121
- < li class ="p-table-of-contents__item "> < a class ="p-table-of-contents__link " href ="#{{ heading.heading_slug }} "> {{ heading.heading_text }}</ a > </ li >
121
+ < li class ="p-table-of-contents__item "> < a class ="p-table-of-contents__link " href ="#{{ heading.heading_slug }} "> {{ heading.heading_text }}</ a > </ li >
122
+ {% if heading.children %}
123
+ < ul class ="p-table-of-contents__list ">
124
+ {% for child in heading.children %}
125
+ < li class ="p-table-of-contents__item "> < a class ="p-table-of-contents__link " href ="#{{ child.heading_slug }} "> {{ child.heading_text }}</ a > </ li >
126
+ {% endfor %}
127
+ </ ul >
128
+ {% endif %}
122
129
{% endfor %}
123
130
</ ul >
124
131
</ nav >
You can’t perform that action at this time.
0 commit comments