Add function for getting events for a talk

GH-160
This commit is contained in:
Oliver Davies 2019-12-27 21:24:14 +00:00
parent 105ae345a9
commit 5499f555c1
4 changed files with 86 additions and 5 deletions

View file

@ -1,13 +1,14 @@
{% import 'helpers' as helpers %}
{% if page.events %}
{% if events %}
<div>
<h2 class="mb-2">Presented at</h2>
<h2>Presented at</h2>
<ul class="markup list-disc ml-5">
{% for event in page.events if not event.date is empty %}
<ul class="markup mt-2 list-disc ml-5">
{% for event in events %}
<li>
{{ helpers.talkEventName(event) }}
{{ helpers.talkEventLocation(event) }}
<span class="text-gray-800">- {{ event.date|date('jS F Y') }}</span>
</li>
{% endfor %}