Check if timeline exists before displaying it
This commit is contained in:
parent
0d648729f7
commit
ad574ba89a
|
|
@ -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 %}
|
||||||
Loading…
Reference in a new issue