This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_includes/talk/events.html.twig

21 lines
579 B
Twig

<div class="mt4">
<h2>Events</h2>
{% set events = [] %}
{% for date in site.events.dates %}
{% set key = (date.talk.id is defined) ? date.talk.id : date.talk %}
{% set talk = (page.id is defined) ? page.id : page.url|split('/')|last %}
{% if key == talk %}
{% set events = events|merge([{
date: date,
event: site.events.events[date.event],
}]) %}
{% endif %}
{% endfor %}
{% include 'talks-table' with {
events: events,
talk_page: true,
} %}
</div>