{% if include.id %} {% assign id = include.id | default: 1 %} {% if include.horizontal %} {% assign filtered-photos = photos | where: 'horizontal', true %} {% else %} {% assign filtered-photos = photos %} {% endif %} {% assign photo = filtered-photos[id] %} {% if include.background %}
{% elsif include.ratio %} {% else %}