robwierzbowski / jekyll-image-tag

Better images for Jekyll.
BSD 3-Clause "New" or "Revised" License
98 stars 26 forks source link

Error using liquid in a loop #25

Closed garygreen closed 9 years ago

garygreen commented 10 years ago

I have a json array of images which resides in project.images -- trying to loop through and output all the images:

<div class="images">
    {% for image in project.images %}
        {% image 300xAUTO {{ image }} %}
    {% endfor %}
</div>

Results in the following error:

error

However doing the below works:

<div class="images">

    {% image 300xAUTO {{ project.images | first }} %}

</div>

It seems the loop is having a weird effect?

garygreen commented 9 years ago

Not interested in Jekyll anymore. Closing