Add function for getting events for a talk
GH-160
This commit is contained in:
parent
105ae345a9
commit
5499f555c1
4 changed files with 86 additions and 5 deletions
source
|
@ -17,6 +17,6 @@
|
|||
{% include 'talk/slides' %}
|
||||
{% include 'talk/video' %}
|
||||
{% include 'talk/tweets' %}
|
||||
{% include 'talk/events' %}
|
||||
{% include 'talk/events' with { events: get_events_for_talk(page, site.events) } only %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue