Skip to content

Latest commit

 

History

History
executable file
·
80 lines (64 loc) · 2.08 KB

people.md

File metadata and controls

executable file
·
80 lines (64 loc) · 2.08 KB
title permalink
People
/people/

{% assign people_sorted = site.people | sort: 'joined' | reverse %} {% assign role_array = "professor|phd|ra|alumni" | split: "|" %}

{% for role in role_array %}

{% assign people_in_role = people_sorted | where: 'position', role %}

{% if people_in_role.size == 0 %} {% continue %} {% endif %}

{% if role == 'phd' %}

Phd Students

{% elsif role == 'professor' %}

Principle Investigator


{% continue %} {% elsif role == 'ra' %}

Research Staff

{% elsif role == 'researchstaff' %}

Research Staff

{% elsif role == 'alumni' %}

Alumni

{% elsif role == 'visiting' %}

Visiting Scholars

{% elsif role == 'others' %}

Honorary Members

{% endif %}

{% for profile in people_sorted %} {% if profile.position contains role %}

      {% if profile.website %}
         {% assign this_url = profile.website | absolute_url %}
      {% else %}
          {% assign this_url = profile.url | prepend: site.baseurl %}
      {% endif %}
      {% if profile.avatar %}
        <a href="{{ this_url }}"><img class="profile-thumbnail" src="{{site.baseurl}}/images/people/{{profile.avatar}}"></a>
      {% else %}
         <a href="{{ site.baseurl }}{{ profile.url }}"><img class="profile-thumbnail" src="http://evansheline.com/wp-content/uploads/2011/02/facebook-Storm-Trooper.jpg"></a>
      {% endif %}
      <a class="name" href="{{ this_url }}">{{ profile.name }}</a>

    </p>
  </div>    
{% endif %}

{% endfor %}


{% else %}

{% endfor %}