refactor: rename event list partials
This commit is contained in:
parent
a445072048
commit
d934089b57
3 changed files with 2 additions and 2 deletions
17
source/_includes/talk/event-list.html.twig
Normal file
17
source/_includes/talk/event-list.html.twig
Normal 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/event-list-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 %}
|
Loading…
Add table
Add a link
Reference in a new issue