Extract includes from the talk layout
This commit is contained in:
parent
de2a1dcee3
commit
aad6d0315e
4 changed files with 56 additions and 47 deletions
25
source/_includes/talk/events.html.twig
Normal file
25
source/_includes/talk/events.html.twig
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% if events %}
|
||||
<section>
|
||||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in events|reverse %}
|
||||
<li>
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||
{% else %}
|
||||
{{ event.name }}
|
||||
{% endif %}
|
||||
|
||||
{% if event.location %}
|
||||
in {{ event.location }}
|
||||
{% endif %}
|
||||
|
||||
- {{ event.date|date('F jS, Y') }}
|
||||
|
||||
{{ event.online ? '(online)' }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue