Less loops

This commit is contained in:
Oliver Davies 2019-05-03 14:41:40 +01:00
parent 4e1377c04b
commit 4ea73ca35f

View file

@ -4,14 +4,12 @@
<h2>Speakers</h2>
<ul>
{% for speaker in page.speakers %}
{% for speaker_info in data.speakers if speaker_info.name == speaker %}
{% for speaker in data.speakers if speaker.name in page.speakers %}
<li>
<a href="{{ speaker_info.url }}">
{{ speaker_info.name }}
<a href="{{ speaker.url }}">
{{ speaker.name }}
</a>
</li>
{% endfor %}
{% endfor %}
</ul>
{% endblock %}