BG color: {{ page.data.bgcolor }}<br>
BG Image: {{ page.data.bg.image }}<br>
// Rendering all keys and values in object
{% for item in page.data.bg %}
Key is: "{{ item[0] }}" and value is "{{ item[1] }}" <br>
{% endfor %}
// Iterating arrays
{% for fruit in page.data.fruits %}
{{ fruit }},
{% endfor %}
Example output:
BG color: gold BG Image: myimage.jpg Key is: "image" and value is "myimage.jpg" Key is: "width " and value is "100px" Key is: "height " and value is "100px" apple, orange, lemon