refactor: rename _partials to _includes

This commit is contained in:
Oliver Davies 2022-01-03 10:26:51 +00:00
parent 0482badc95
commit a445072048
17 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{% if events is not empty %}
<div class="markdown">
<h2>Events</h2>
<ul>
{% for event in events|sort((a, b) => a.date > b.date) %}
{% include 'talk/events/event.html.twig' with {
date: event.date,
is_online: event.is_online ?? false,
location: event.location,
name: event.name,
url: event.url,
} only %}
{% endfor %}
</ul>
</div>
{% endif %}