{% extends "base.html" %} {% block post_content %} {% set cards = page|get_children(pages,depth=3) %} {% set tabs = {} %} {% for Tab in cards[0].children %} {% set tab = Tab.meta.title %} {% if tab not in tabs %}{% do tabs.update({tab: []}) %}{% endif %} {% for card in Tab.children %} {% if card not in tabs[tab] %} {% do tabs[tab].append(card) %} {% endif %} {% endfor %} {% endfor %}
{% for tab in tabs %}
{% for card in tabs[tab] %} {% if 'index' not in card.url.lower() %}
{% if card.image %}
{% endif %}
{{ card.title }}

{{ card.summary if card.summary else "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }}

{% endif %} {% endfor %}
{% endfor %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}