6.1 Linked-list View in a new window
Link lists are a structured way of displaying links to content with a common theme.
Twig: components/linked-list/linked-list.twig
Markup
{% set linkList = linkList|default([
{
"text": "How to safely manage",
"url": "#", "svgUrl":"."
},
{
"text": "How to safely dispose",
"url": "#", "svgUrl":"."
},
{
"text": "Who to contact",
"url": "#", "svgUrl":"."
}
]) %}
<div class="">
<div class="nsw-link-list">
<ul class="nsw-link-list__list p-0">
{% for item in linkList %}
{% include '@asbestos/components/linked-list/list.twig' with {
"item": item
} %}
{% endfor %}
</ul>
</div>
</div>