{% assign image_files = site.static_files | where: "buttons", true %} {% for button in image_files %} {% if button.basename == "88x31" %} {% else %} {% endif %} {% endfor %}