Newer
Older
pre-www / src / blocks / title.twig
{% if title == null %}
    {% set title = block.content.title %}
{% endif %}

<div class="block-container block-{{block.key}}{% if block.content.link %} block-{{block.key}}--link{% endif %} {{block.classes}}">
    <div class="block-{{block.key}}__inner">
        <{{block.tag}}>{{title}}</{{block.tag}}>
        {% if block.content.link != null %}
            <a href="{{block.content.link.url}}">{{block.content.link.label}}</a>
        {% endif %}
    </div>
</div>