Only show heading if there is a title

This commit is contained in:
Oliver Davies 2019-05-16 00:15:52 +01:00
parent 0a9dbce007
commit e618511906

View file

@ -1,6 +1,8 @@
<h2>Session</h2>
{% for session in sessions if speaker.name in session.speakers %}
{% if loop.first %}
<h2>Session</h2>
{% endif %}
<a href="{{ session.url }}">
{{ session.title }}
</a>