{# Subsections - Zola automatically sorts section.subsections by weight #}
{% if root_section.subsections %}
{% for subsection_path in root_section.subsections %}
{% set subsection = get_section(path=subsection_path) %}
{% if subsection.extra.hide_from_toc is not defined or not subsection.extra.hide_from_toc %}
<divclass="toc__section">
<ahref="{{ subsection.permalink | safe }}"class="toc__section-title {% if current_path is defined and current_path == subsection.path %}active{% endif %}">{{ subsection.title }}</a>
<ulclass="toc__list">
{% for pg in subsection.pages %}
<liclass="toc__item">
<ahref="{{ pg.permalink | safe }}"class="toc__link {% if current_path is defined and current_path == pg.path %}active{% endif %}">
{{ pg.title }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</div>
</nav>
<divclass="sidebar__footer">
{# Mobile-only actions (hidden on desktop where they're in header) #}
{% if config.extra.show_theme_toggle | default(value=true) %}
<divclass="sidebar__action">
<spanclass="sidebar__action-label">Theme</span>
{% include "partials/theme-toggle.html" %}
</div>
{% endif %}
{# GitHub link #}
{% if config.extra.github %}
<ahref="{{ config.extra.github }}"class="sidebar__github"target="_blank"rel="noopener noreferrer"aria-label="View project on GitHub (opens in new tab)">