Only show events table if there are events

This commit is contained in:
Oliver Davies 2019-01-18 14:09:56 +00:00
parent 0b75d553e9
commit 887937aa56

View file

@ -1,8 +1,11 @@
<div class="mt-8">
<h2 class="mb-2">Events</h2>
{% set talks = getAllTalks([page], site.events) %}
{% if talks is not empty %}
<div class="mt-8">
<h2 class="mb-2">Events</h2>
{% include "talks/table" with {
talks: getAllTalks([page], site.events)|reverse,
talk_page: true
} %}
</div>
{% include "talks/table" with {
talks: talks|reverse,
talk_page: true
} %}
</div>
{% endif %}