{# Display search result summary according to content type #}
{% with result.object as object %}
    {% if object.kind == 'account' or object.kind == 'community' %}
        {% with object as account %}
            {% include object.summary_view %}
        {% endwith %}
    {% else %}{% if object.kind == 'content' %}
        {% with object as content %}
            {% include object.summary_view %}
        {% endwith %}
    {% endif %}{% endif %}
{% endwith %}

