Newer
Older
pre-www / src / blocks / links-list.twig
<div class="block-{{block.key}} {{block.classes}}">
    <div class="block-container">
        {% if block.content.label %}
            <p class="block-{{block.key}}__label">{{block.content.label}}</p>
        {% endif %}
        <ul>
            {% for item in block.content.list %}
                {% set block_link = 
                    {
                        "key": "link",
                        "url": item.url,
                        "links_size": block.links_size,
                        "content": {
                            "name": item.name,
                            "url": item.url,
                            "external_name": item.external_name
                        }
                    } 
                %}
                <li>
                    {% include './link.twig' with {'block': block_link } %}
                </li>
            {% endfor %}
        </ul>
    </div>
</div>