{% macro articles(_articles) %} {% for article in _articles %} {% set menu_level = article.level.split('.').length-1 %}