{% for root in sidebar_children %} {% if root.children %}
  • {{ root.title }}
      {% for node in root.children %}
    • {{ node.title }}
    • {% endfor %}
  • {% else %}
  • {{ root.title }}
  • {% endif %} {% endfor %}