Newer
Older
pre-www / src / blocks / events-row.twig
<div class="block-{{block.key}} {{block.classes}}">
    {% if block.content.title %}
        {% include "./title.twig"  with {"block": block.content.title} %}
    {% endif %}
    <div class="block-{{block.key}}__inner">
        {% if block.content.items.posts %}
            {% for event in block.content.items.posts %}
                {% include "../layout/partials/tease-event.twig" with {"event": event } %}
            {% endfor %}
        {% else %}
            {% for id in block.content.items.id %}
                {% set event = post_type.events.items[~id~] %}
                {% include "../layout/partials/tease-event.twig" with {"event": event } %}
            {% endfor %}
        {% endif %}
        
    </div>
</div>