{% load wagtailcore_tags themes_tags %}

{% block stylesheets %}
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
{% 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 %}