{%- capture title %} {% if type == 'repost-of' %} Reposts {% elsif type == 'like-of' %} Likes {% endif %} {% endcapture -%} {% if mentions[type].size > 0 %}

{{ title }}

{% for mention in mentions[type] %}
{% capture authorAlt %}{{ mention.author.name | escape }}{% endcapture %} {% capture fallbackIcon %}{% tablericon "user" authorAlt %}{% endcapture %} {% image mention.author.photo, authorAlt, 'avatar__image', 'lazy', 'rounded', fallbackIcon %}
{% endfor %}
{% endif %}