{% if categories|length > 0 %}
{% for category in categories %}
{% if category.pageLink.href is defined and category.pageLink.href is not empty %}
<a href="{{sulu_content_load(category.pageLink.href).content.url}}" class="nodeco">
{% endif %}
<div class="thematiques-tag cwhite fw400 dflex aic" data-thematiqueid={{category.id}} style="background: {{load_category_by_id(category.id, 'fr').entity.color}}">
{{category.translations[0].translation}}
</div>
{% if category.pageLink is defined and category.pageLink is not empty %}</a>{% endif %}
{% endfor %}
{% endif %}