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}}">
    {% if block.clickable %}
        <a href="{{block.content.url}}" class="block-{{block.key}}__inner">
    {% else %}
        <div class="block-{{block.key}}__inner">
    {% endif %}
        <{{block.tag}}>{{title}}</{{block.tag}}>
        {% if block.content.link != null %}
            <a href="{{block.content.link.url}}">{{block.content.link.label}}</a>
        {% endif %}
    {% if block.clickable %}
        </a>
    {% else %}
        </div>
    {% endif %}
</div>