{% assign person = include.person %} {% comment %} Usage: {% for item in site.data.people %} {% assign person = item[1] %} {% if person.role == role.key %} {% include person.html person=person image=true %} {% endif %} {% endfor %} Use the image parameter to include or not include an image. Note that pl-0 just removes the left padding from the name part that is put there by default by Bootstrap columns. {% endcomment %} {% if person.webpage %} {% capture name %} {{ person.display_name }} {% endcapture %} {% else %} {% assign name = person.display_name %} {% endif %} {% if include.image %}
{% include person-image.html person=person %}
{{ name }}
{% if person.bio %}
{{person.bio}}
{% endif %}
{% else %}
{{ name }} {% if person.bio %} {{person.bio}} {% endif %}
{% endif %}