{% macro render_toc(articles, activeSlug) %} {% for article in articles %} {% set hasChildren = article.children is not empty %} {% set isActive = article.fullslug == activeSlug %}