{% extends "base_archive.html.twig" %}
{% block content %}
<main id="main" class="main-shifted-right-archiv" style="margin-top: 0">
{# <div class="container">
<div class="title" style="width: 80%">
<h1 style="font-family: Teko Medium, sans-serif; font-size: 70px; letter-spacing: 1.3px"> {{ content.title}} </h1>
</div>
</div>#}
{% set temp_archivBlocks = [] %}
{% for block in content.blocks %}
{% if block.type == "archivBlock" %}
{% set temp_archivBlocks = temp_archivBlocks|merge([block]) %}
{% else %}
{# Check if there are any archivBlocks stored in the temporary storage #}
{% if temp_archivBlocks is not empty %}
{% include 'partials/archivBlock.html.twig' with {
archives: temp_archivBlocks,
tabs_per_row: 4
} %}
{# Reset the temporary storage #}
{% set temp_archivBlocks = [] %}
{% endif %}
{% include 'partials/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} %}
{% endif %}
{% endfor %}
{# After the loop, check if there are any remaining archivBlocks to render #}
{% if temp_archivBlocks is not empty %}
{% include 'partials/archivBlock.html.twig' with {
archives: temp_archivBlocks,
tabs_per_row: 4,
} %}
{% endif %}
</main>
<style>
h2 {
font-size: 70px;
}
</style>
{% endblock %}