{% if site.favicon %} {% else %} {% assign image_files = site.static_files | where: "image", true %} {% for image in image_files %} {% if image.basename == 'favicon' %} {% endif %} {% endfor %} {% endif %}