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