Use speakerSessions function

This commit is contained in:
Oliver Davies 2019-05-20 23:40:25 +01:00
parent 31da26af26
commit 6a137dbee7
2 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{% for session in sessions if speaker.name in session.speakers %}
{% for session in sessions %}
{% if loop.first %}
<h2 class="tw-mt-8">Session</h2>
{% endif %}

View file

@ -44,10 +44,9 @@
</div>
<aside>
{% include 'speaker-session' with {
sessions: data.sessions,
speaker: page
} %}
{% include 'speaker-session' with {
sessions: speakerSessions(page, data.sessions),
} %}
</aside>
</div>
</div>