Less loops
This commit is contained in:
parent
4e1377c04b
commit
4ea73ca35f
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue