{%- 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_image != "For departments with no contact photos, do not change this field." %}
{% if contact.portrait_image != 'none' %}Photo of {{ contact.name }}{% endif %}
{{ 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 %} {%- if contact.bio == true -%}{% 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 %} {% if contact.bio == true %}{% endif %}

{%- endif -%} {%- endfor -%}
{% for contact in sorted_contacts %} {%- if contact.bio == true -%} {%- endif -%} {% endfor %}