I'm using a liquid for loop in Jekyll to display page content based on this YAML structure:
work_left:
isitgo:
image: /images/isitgo.png
caption: isitgoonair.net homepage
description: a website
disko:
image: /images/disko.png
caption: Disko
description: a website
work_right:
qfi:
image: /images/qfi.png
caption: qfi.im
description: a website
This is the for loop:
{% for item in page.work_left %}
{{ item.image }}
{% endfor %}
item.image
will not result into the strings /images/isitgo.png
and /images/disko.png
being output.
If instead I just do {{ item }}
, here's the result:
isitgo
{
"image"=>"/images/isitgo.png",
"caption"=>"isitgoonair.net homepage",
"description"=>"an awesome website i made"
}
disko
{
"image"=>"/images/disko.png",
"caption"=>"Disko",
"description"=>"that site"
}
What's causing this?