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

@ -0,0 +1,11 @@
<h2>Speakers</h2>
<ul>
{% for speaker in speakers if speaker.name in session.speakers %}
<li>
<a href="{{ speaker.url }}">
{{ speaker.name }}
</a>
</li>
{% endfor %}
</ul>

View file

@ -0,0 +1,7 @@
<h2>Session</h2>
{% for session in sessions if speaker.name in session.speakers %}
<a href="{{ session.url }}">
{{ session.title }}
</a>
{% endfor %}