Extract partials

This commit is contained in:
Oliver Davies 2019-05-03 18:40:05 +01:00
parent a594e5c8ea
commit 86a82561f4
4 changed files with 26 additions and 18 deletions

View file

@ -1,15 +1,8 @@
{% extends 'page' %}
{% block content_bottom %}
<h2>Speakers</h2>
<ul>
{% for speaker in data.speakers if speaker.name in page.speakers %}
<li>
<a href="{{ speaker.url }}">
{{ speaker.name }}
</a>
</li>
{% endfor %}
</ul>
{% include 'session-speakers' with {
session: page,
speakers: data.speakers,
} %}
{% endblock %}