-%}
  {% else -%}
    {% assign path = path | append: '/' | append: path_part -%}
  {% endif -%}
  {% if forloop.index0 > 1 -%}
    {% assign topics = topics | where: "permalink", path -%}
    {% assign topics = topics[0].children -%}
  {% endif -%}
{% endfor -%}

{% assign entries = topics -%}
{% capture md %}{% include mini-toc.md %}{% endcapture %}
{{ md | markdownify }}

{{content}}
