My problem is this: I want to build a grid with two items each row. The following loop works perfect with even numbers of items like 2,4,6,... because the grid closes correctly with a </div><!-- /.row -->
.
{% for image in page.image %}
{% cycle '<div class="row">', '' %}
<div class="large-6 columns">{% image bigthumb {{ image }} class="th" %}</div><!-- /.large-6.columns -->
{% cycle '', '</div><!-- /.row -->' %}
{% endfor %}
But if I have an odd/uneven number of items my grid won't get its necessary closing </div>
. How can I solve this problem in liquid?