Skip to content

Latest commit

 

History

History
73 lines (65 loc) · 2.47 KB

File metadata and controls

73 lines (65 loc) · 2.47 KB
layout page
title People
slug people
hero_slug people
permalink /people/

{% assign all_current = site.people | where: "status", "current" | where_exp: "p", "p.visible != false" %} {% assign non_pi = all_current | where_exp: "p", "p.pi != true" | sort_natural: "last_name" %} {% assign pi = all_current | where: "pi", true %} {% assign current = non_pi | concat: pi %}

{% comment %} Alumni: order by end_year descending, then alphabetical by last_name within each year. Liquid's sort isn't reliably stable, so we group by year explicitly and concat in order. {% endcomment %} {% assign all_alumni = site.people | where: "status", "alumnus" | where_exp: "a", "a.visible != false" %} {% assign years = all_alumni | map: "end_year" | uniq | compact | sort | reverse %} {% assign alumni = "" | split: "" %} {% for y in years %} {% assign yr = all_alumni | where: "end_year", y | sort_natural: "last_name" %} {% assign alumni = alumni | concat: yr %} {% endfor %} {% assign no_year = all_alumni | where_exp: "a", "a.end_year == nil" | sort_natural: "last_name" %} {% assign alumni = alumni | concat: no_year %}

Current

{% for member in current %}
{% if member.photo %}{{ member.name }}{% else %}
{% endif %}

{{ member.name }}

{{ member.role }}

{% if member.cv_url or member.profile_url %}

{% if member.cv_url %}Curriculum Vitae{% endif %} {% if member.profile_url %}Stanford profile{% endif %}

{% endif %}
{% endfor %}

Alumni

{% assign visible = alumni | slice: 0, 30 %} {% assign hidden = alumni | slice: 30, 9999 %}

    {% for a in visible %}
  • {{ a.name }} {{ a.role }}
  • {% endfor %}

{% if hidden.size > 0 %}

Show more alumni
    {% for a in hidden %}
  • {{ a.name }} {{ a.role }}
  • {% endfor %}
{% endif %}