{# Bloc Palette Personnalisée Variables : block.content.title string|null — h2 optionnel block.content.intro string|null — texte d'introduction (HTML) block.config.display 'large'|'contained' block.config.alignment 'centered'|'flag' block.images [{filename, alt, link_url, credits, sort_order, is_primary}, …] #} {% set images = block.images ?? [] %} {% set display = block.config.display ?? 'contained' %} {% set alignment = block.config.alignment ?? 'flag' %} {% set title = block.content.title ?? '' %} {% set intro = block.content.intro ?? '' %} {% set count = images | length %}
{% if title or intro %}
{% if title %}

{{ title }}

{% endif %} {% if intro %}
{{ intro | raw }}
{% endif %}
{% endif %} {% if count > 0 %}
{% for image in images %} {% set isLast = loop.last and count is odd %} {% set revealClass = isLast ? 'scroll-reveal-sides' : (loop.index is odd ? 'scroll-reveal-slide-left' : 'scroll-reveal-slide-right') %} {% set caption = image.caption is not empty ? image.caption : '' %} {% set altText = image.alt ?? '' %} {% if image.link_url %}
{{ altText }} {% if caption %}

{{ caption }}

{% endif %}
{% else %}
{{ altText }} {% if caption %}

{{ caption }}

{% endif %}
{% endif %} {% endfor %}
{% endif %}