{# Calendar entries for blog listing cards — served as fragment from events app. Each post's entries are delimited by comment markers so the consumer can extract per-post HTML via simple string splitting. #} {% for post_id in post_ids %} {% set widget_entries = batch.get(post_id, []) %} {% if widget_entries %}

Events:

{% for entry in widget_entries %} {% set _post_slug = slug_map.get(post_id, '') %} {% set _entry_path = '/' + _post_slug + '/calendars/' + entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %}
{{ entry.name }}
{{ entry.start_at.strftime('%a, %b %d') }}
{{ entry.start_at.strftime('%H:%M') }} {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
{% endfor %}
{% endif %} {% endfor %}