{%- if page.toc | length >= 1 %}
<div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
    <div class="navbar-header">
        <button type="button" class="navbar-toggler collapsed mb-1" data-toggle="collapse" data-target="#toc-collapse" title="Contents">
            <span class="fa-solid fa-angle-down"></span>
        </button>
    </div>
    <div id="toc-collapse" class="navbar-collapse collapse card bg-secondary toc-scroll toc">
        <ul class="nav flex-column bs-sidenav">
            <p style="margin-top:5px; color:#777777;" class="text-center">Contents</p>
        {%- for toc_item in page.toc %}
            <li class="nav-item main"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
            {%- for toc_item in toc_item.children %}
                <li class="nav-item" style="text-indent: 5px;">
                    <a href="{{ toc_item.url }}" class="nav-link{% if toc_item.active %} active{% endif %}">• {{ toc_item.title }}</a>
                </li>
                {%- for toc_item in toc_item.children %}
                <li class="nav-item" style="text-indent: 25px;">
                    <a href="{{ toc_item.url }}" class="nav-link{% if toc_item.active %} active{% endif %}">&rarr; {{ toc_item.title }}</a>
                </li>
                {%- endfor %}
            {%- endfor %}
        {%- endfor %}
        </ul>
    </div>

    <div class="admonition conference" style="position: sticky; margin-top: 20px; margin-bottom:10px;">
        <p>visit <a class="no-arrow-link" href="https://eclipse.dev/sumo">eclipse.dev/sumo</a></p>
    </div>

</div>
{%- endif %}
