{% for item in items %}
  {% include "social/_post_card.html" %}
{% endfor %}

{% if items %}
  {% set last = items[-1] %}
  {% if timeline_type == "actor" %}
    <div sx-get="{{ url_for('ap_social.actor_timeline_page', id=actor_id, before=last.published.isoformat()) }}"
         sx-trigger="revealed"
         sx-swap="outerHTML">
    </div>
  {% endif %}
{% endif %}
