Check if timeline exists before displaying it

This commit is contained in:
TheThomaas 2024-02-10 21:09:27 +01:00
parent 0d648729f7
commit ad574ba89a

View file

@ -1,3 +1,4 @@
{% if timeline %}
<ol class="timeline"> <ol class="timeline">
{%- for elements in timeline -%} {%- for elements in timeline -%}
{% assign data = elements.data %} {% assign data = elements.data %}
@ -10,3 +11,4 @@
description: data.description %} description: data.description %}
{%- endfor -%} {%- endfor -%}
</ol> </ol>
{% endif %}