{% assign class = include.class | '' %} {% assign resource = include.icon | upcase %} {% capture path %}/assets/img/{{ include.icon_folder }}/{{ resource | append: '.png' }}{% endcapture %} {% assign matching_icon = site.static_files | where_exp: 'file', 'file.path == path' %} {% capture img %} {{ include.alt | default: resource }} {% endcapture %} {% for icon in matching_icon %} {% if include.link %} {{ img }} {% else %} {{ img }} {% endif %} {% else %} {% if include.show_placeholder %} {% endif %} {% endfor %}