Only show events table if there are events
This commit is contained in:
parent
0b75d553e9
commit
887937aa56
|
@ -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 %}
|
||||
|
|
Reference in a new issue