{% set blockName = block.meta.slug %}
<div class="b-block c-theme b-{{ blockName }}" id="{{ block.meta.anchor }}">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <h2>{{ block.title }}</h2>
                <div>
                    {{ block.text }}
                </div>
            </div>
        </div>
        {% if block.add_latest_posts %}
        <div class="row">
            {% for post in block.posts %}
                <div class="col-12 col-md-4">
                    {% include 'partial/card.twig' with { modifier : 'pink' } %}
                </div>
            {% endfor %}
        </div>
        {% endif %}
    </div>
</div>
