layout | title |
---|---|
default |
alumni |
{% assign faculty = site.data.people | where: 'position', 'faculty' %} {% assign staff = site.data.people | where: 'position', 'research_scientist' %} {% assign postdocs = site.data.people | where: 'position', 'postdoc' %} {% assign phd = site.data.people | where: 'position', 'phd' %} {% assign master = site.data.people | where: 'position', 'master' %} {% assign bachelor = site.data.people | where: 'position', 'bachelor' %} {% assign visiting = site.data.people | where: 'position', 'visiting' %}
{% assign faculty = faculty | where_exp: 'p', 'p.end != nil' %} {% assign staff = staff | where_exp: 'p', 'p.end != nil' %} {% assign postdocs = postdocs | where_exp: 'p', 'p.end != nil' %} {% assign phd = phd | where_exp: 'p', 'p.end != nil' %} {% assign master = master | where_exp: 'p', 'p.end != nil' %} {% assign bachelor = bachelor | where_exp: 'p', 'p.end != nil' %} {% assign visiting = visiting | where_exp: 'p', 'p.end != nil' %}
{% if staff.size != 0 %}
{% assign years = staff | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign st = staff | where: 'end', year %} {% for p in st %}{% if postdocs.size != 0 %}
{% assign years = postdocs | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign pd = postdocs | where: 'end', year %} {% for p in pd %}{% if phd.size != 0 %}
{% assign years = phd | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign g = phd | where: 'end', year %} {% for p in g %}{% if master.size != 0 %}
{% assign years = master | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign g = master | where: 'end', year %} {% for p in g %}{% if bachelor.size != 0 %}
{% assign years = bachelor | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign g = bachelor | where: 'end', year %} {% for p in g %}{% if visiting.size != 0 %}
{% assign years = visiting | map: 'end' | uniq | sort | reverse %} {% for year in years %} {% assign pd = visiting | where: 'end', year %} {% for p in pd %}