{% for column in columns %}
{# column's top slide #}
{{column.title}}
{% if column.content %}{{ column.content|safe }}{% endif %} {# Main column (no id) shows links to other columns #} {% if not column.id %}
{% for other in columns %} {% if other.id %}
{{other.title}}
{% endif %} {% endfor %}
{% endif %} {# if column has sub-slides, link to them #} {% if column.slides %}
{% for slide in column.slides %}
{{slide.title}}
{% endfor %}
{% endif %}
{# show all column's sub-slides #} {% for slide in column.slides %}
{{slide.title}}
{% if slide.content %}{{ slide.content|safe }}{% endif %}
{% endfor %}
{% endfor %}