<hr />
<p><b>{{ _t('FULLTEXTSEARCH_RESULT_LABEL') }} {{ results|length }}</b></p>

<div class="fullTextSearch_searchresult_wrappers">
    {% for result in results %}
        <div class="fullTextSearch_searchresult_item">
            <h4 class="fullTextSearch_searchresult_item_title">
                <a href="{{ url({ tag: result.tag }) }}">{{ result.title is empty ? result.tag : result.title|raw }}</a>
            </h4>
            <p class="fullTextSearch_searchresult_item_badge">
                <span class="badge badge-secondary">
                    {{ categoryMap[result.tag] }}
                </span>
            </p>

            <p class="fullTextSearch_searchresult_item_excerpt">
                {% if result.excerpt.fulltext is not empty %}
                    <i>[...]&nbsp;</i>{{ result.excerpt.getFullTextCleaned|trim|raw }}<i>&nbsp;[...]</i>
                {% endif %}
            </p>
        </div>
    {% endfor %}
</div>
