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,4 +1,5 @@
<ol class="timeline"> {% if timeline %}
<ol class="timeline">
{%- for elements in timeline -%} {%- for elements in timeline -%}
{% assign data = elements.data %} {% assign data = elements.data %}
{% render 'partials/components/timeline-item', {% render 'partials/components/timeline-item',
@ -9,4 +10,5 @@
location: data.location, location: data.location,
description: data.description %} description: data.description %}
{%- endfor -%} {%- endfor -%}
</ol> </ol>
{% endif %}