{% assign path = person.url | prepend: '/images' | replace: '.html','.jpg' %} {% assign file = site.static_files | where: "path", path | first %} {% if file %} {% else %}