Add empty text if there are no upcoming events
This commit is contained in:
parent
b903baaaf3
commit
af9674bd72
|
@ -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>
|
||||||
|
|
Reference in a new issue