Add empty text if there are no upcoming events

This commit is contained in:
Oliver Davies 2017-10-28 12:17:25 +01:00
parent b903baaaf3
commit af9674bd72

View file

@ -10,11 +10,13 @@ use: [talks]
{% set data = { talks: data.talks, events: site.events } %} {% set data = { talks: data.talks, events: site.events } %}
<h2>Upcoming Talks</h2>
{% set upcoming_talks = data|format_talks(true) %} {% set upcoming_talks = data|format_talks(true) %}
{% if upcoming_talks %} {% if upcoming_talks %}
<h2>Upcoming Talks</h2>
{% include "talks-table" with { talks: upcoming_talks } %} {% include "talks-table" with { talks: upcoming_talks } %}
{% else %}
<p>Nothing scheduled at the moment.</p>
{% endif %} {% endif %}
<h2>Last 5 Talks</h2> <h2>Last 5 Talks</h2>