layout | title | permalink |
---|---|---|
page_select |
/people/ |
{% assign people_sorted = site.people | sort: 'joined' %} {% assign people_array = "pi|postdoc|gradstudent|engineer|alumni" | split: "|" %}
{% assign people_valid = '' | split: '' %} {% for item in people_array %} {% assign listpeople = '' | split: '' %} {% for profile in people_sorted %} {% if profile.position contains item %} {% assign listpeople = listpeople | push: profile %} {% endif %} {% endfor %} {% assign people_valid = people_valid | push: listpeople %} {% endfor %}
{% assign i = 0 %}
{% for item in people_array %}
{% assign listpeople = people_valid[i] %}
{% assign i = i | plus: 1 %}
{% if listpeople.size > 0 %}
{% endif %} {% endfor %}
{% if item == 'postdoc' %}
{% elsif item == 'pi' %}
{% elsif item == 'gradstudent' %}
{% elsif item == 'engineer' %}
{% elsif item == 'visiting' %}
{% elsif item == 'alumni' %}
{% endif %}
{% for profile in listpeople %}
{% endfor %}
• {% if profile.site %} {% endif %} {{profile.name}} {% if profile.desc %} - {{profile.desc}} {% endif %} {% if profile.site %} {% endif %}
{% endif %} {% endfor %}