108 | {% unless page.url == "/" %}
109 | {% if page.parent %}
110 | {%- for node in pages_list -%}
111 | {%- if node.parent == nil -%}
112 | {%- if page.parent == node.title or page.grand_parent == node.title -%}
113 | {%- assign first_level_url = node.url | absolute_url -%}
114 | {%- endif -%}
115 | {%- if node.has_children -%}
116 | {%- assign children_list = pages_list | where: "parent", node.title -%}
117 | {%- for child in children_list -%}
118 | {%- if page.url == child.url or page.parent == child.title -%}
119 | {%- assign second_level_url = child.url | absolute_url -%}
120 | {%- endif -%}
121 | {%- endfor -%}
122 | {%- endif -%}
123 | {%- endif -%}
124 | {%- endfor -%}
125 |
139 | {% if site.heading_anchors != false %}
140 | {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="
" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
141 | {% else %}
142 | {{ content }}
143 | {% endif %}
144 |
145 | {% if page.has_children == true and page.has_toc != false %}
146 |
147 |
Table of contents
148 |
149 | {%- assign children_list = pages_list | where: "parent", page.title | where: "grand_parent", page.parent -%}
150 | {% for child in children_list %}
151 | -
152 | {{ child.title }}{% if child.summary %} - {{ child.summary }}{% endif %}
153 |
154 | {% endfor %}
155 |
156 | {% endif %}
157 |
158 | {% capture footer_custom %}
159 | {%- include footer_custom.html -%}
160 | {% endcapture %}
161 | {% if footer_custom != "" or site.last_edit_timestamp or site.gh_edit_link %}
162 |
163 |
191 | {% endif %}
192 |
193 |