On This Page
{% if page.toc %} {% with roottoc = page.toc | list %} {% with toc = roottoc if roottoc | length > 1 else roottoc[0].children %} {% for h2 in toc %} {{ h2.title }} {% if h2.children %} {% for h3 in h2.children %} {{ h3.title }} {% endfor %} {% endif %} {% endfor %} {% endwith %} {% endwith %} {% endif %}