{% set title = content.title|default %}
{% if content.blocks|default([])|length %}
{% set n = 0 %}
<section class="blocks-section">
{% for block in content.blocks %}
{% set n = n + 1 %}
{#<div class="blocks__item block-{{block.type}} pt-2" id="">#}
{% if block.type =="texte" %}
{% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} only %}
{% elseif block.type =="image" and n == 1 %}
{% elseif block.type =="faq" %}
{% else %}
<div class="blocks__item block-{{block.type}} " id="">
{% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} only %}
</div>
{% endif %}
{#</div> #}
{% endfor %}
{% if title == 'Horaires & Tarifs' %}
<div class="row">
<div class="col text-center pt-3 pb-3">
<a href="/details" class="btn btn-link transition-bgcolor bg-green-s minw-sm">Réserver!</a>
</div>
</div>
{% endif %}
</section>
{% endif %}
{% if title == 'Faq'%}
<div class="bloc-faq-page py-4">
<div class="max-container-4">
{% if content.blocks|default([])|length %}
<div class="faq-accordion pt-2" id="accordion">
{% for block in content.blocks %}
{% if block.type =="faq" %}
{% include 'includes/blocks/' ~ block.type ~ '.html.twig' with {
content: block,
view: view.blocks[loop.index0],
} only %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endif %}