{% assign person = include.person %} {% comment %} Usage: {% include person-image.html person=person %} Sizing of the SVG is done in a viewBox, and it's resized later in CSS. text-decoration hack is for Safari. We don't SVGs to be underlined. {% endcomment %} {% if person.image %} {% capture image %} {{ person.display_name }} {% endcapture %} {% else %} {% capture image %} {{ person.display_name }} {{ person.display_name | slice: 0 }} {% endcapture %} {% endif %} {% if person.webpage %} {{ image }} {% else %} {{ image }} {% endif %}