{% if contentList|length %}
    <ul class="thematique-list">
        {% for content in contentList %}
            <li>
                {% set thematique = ez_field_value(content,'thematique').tags.0 %}

                <a href="{{ path( 'ez_urlalias', {'contentId': configurationGenerale.getFieldValue('agenda_racine').destinationContentId , 'tags[]': thematique.keyword } ) }}">
                    {% if content.getField("pictogramme").value is defined and not ez_is_field_empty( content, "pictogramme" ) %}
                        <span class="thematique-icon"><img src="{{ content.getFieldValue('pictogramme').uri }}"></span>
                        <span class="thematique-title">{{ ez_content_name(content)}}</span>
                    {% endif %}
                </a>
            </li>
        {% endfor %}
    </ul>
{% endif %}