{% for image in site.static_files %} {% if image.path contains include.sliderpath %} {% endif %} {% endfor %}