{% macro render_toc(articles, activeSlug) %} {% for article in articles %} {% set hasChildren = article.children is not empty %} {% set isActive = article.fullslug == activeSlug %}
  • {{ article.title }} {% if hasChildren %} {% endif %}
  • {% endfor %} {% endmacro %} {% import _self as nav %}