{% macro navsection(hierarchy, level, current) %} {% set sec = hierarchy | nth(n=level) %} {% set sec = get_section(path=sec) %} {% set maxlevel = hierarchy | length %} {% if sec.subsections %} {% for s in sec.subsections %} {% set p = get_section(path=s) %}