{% assign limit = include.limit | default: 6 %} {% assign offset = include.offset | default: 0 %}
{% assign photos = photos | where: 'horizontal', true %} {% for photo in photos limit: limit offset: offset %}
{% endfor %}