{% assign sorted_contacts = site.contacts | sort: "display_order" %}
{% for contact in sorted_contacts %} {% assign contact_name = contact.name | split: " " %} {% assign first = contact_name[0] %} {% assign last = contact_name[1] %} {% if contact.portrait != 'For departments with no contact photos, do not change this field.' and contact.portrait != 'none' %}
{{ contact.name }}
{{ contact.name }}
{% if contact.contacts_title %}
{{ contact.contacts_title }}
{% endif %}

{% if contact.phone %}{{ contact.phone }}
{% endif %} {% if contact.email %}Email
{% endif %} {% if contact.fax %}Fax: {{ contact.fax }}{% endif %}

{% elsif contact.portrait == 'none' %}
{{ contact.name }}
{% if contact.contacts_title %}
{{ contact.contacts_title }}
{% endif %}

{% if contact.phone %}{{ contact.phone }}
{% endif %} {% if contact.email %}Email
{% endif %} {% if contact.fax %}Fax: {{ contact.fax }}{% endif %}

{% else %}
{{ contact.name }}
{% if contact.contacts_title %}
{{ contact.contacts_title }}
{% endif %}

{% if contact.phone %}{{ contact.phone }}
{% endif %} {% if contact.email %}Email
{% endif %} {% if contact.fax %}Fax: {{ contact.fax }}{% endif %}

{% endif %} {% endfor %}