{% set licences = resource.licences | map(attribute="licence") | list %}
Available under:
{% for licence in licences %}
{{ licence.title }}
{% if not loop.last %}, {% endif %}
{% endfor %}
{% for licence in licences %}
{% if licence.logo_url %}
{# An equivalent link already exists, only one is focusable #}
{% endif %}
{% endfor %}
{% endblock %}