{% load wagtailcore_tags themes_tags %} {% block stylesheets %} {% endblock %} {% for item in index %} {% theme_type as index_type %} {% if item.in_use and index_type != 'None' %} {% for block in item.body %} {% if block.block_type == "carousel" %} {% include_block block %} {% elif block.block_type == "page_card_list" %} {% include_block block %} {% elif block.block_type == "one_paragraph" %} {% include_block block %} {% elif block.block_type == "card_list" %} {% include_block block %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %}