Check if timeline exists before displaying it
This commit is contained in:
parent
0d648729f7
commit
ad574ba89a
|
|
@ -1,4 +1,5 @@
|
|||
<ol class="timeline">
|
||||
{% if timeline %}
|
||||
<ol class="timeline">
|
||||
{%- for elements in timeline -%}
|
||||
{% assign data = elements.data %}
|
||||
{% render 'partials/components/timeline-item',
|
||||
|
|
@ -9,4 +10,5 @@
|
|||
location: data.location,
|
||||
description: data.description %}
|
||||
{%- endfor -%}
|
||||
</ol>
|
||||
</ol>
|
||||
{% endif %}
|
||||
Loading…
Reference in a new issue