diff --git a/people.html b/people.html index 450f995..fddaf96 100644 --- a/people.html +++ b/people.html @@ -7,29 +7,28 @@ --- {% assign people = site.data.people %} {% assign roles = "postdocs|graduate_students|research_associates|undergraduates" | split: "|" %} -{% assign labels = "Postdocs|Graduate Students|Research Associates|Undergraduate Students" | split: "|" %} - -

Principal Investigator:

-
-
- {% include person.html person=people.pi %} -
+{%- comment -%} + Build one flat list of all current members (PI first, then each role + in the order defined above). Cards just flow in this order — no + per-role section headers. Each card's `title` field still shows the + individual role under the name. +{%- endcomment -%} +{% assign current_members = "" | split: "" %} +{% if people.pi %}{% assign current_members = current_members | push: people.pi %}{% endif %} {% for role in roles %} - {% assign label = labels[forloop.index0] %} - {% assign all = people[role] %} - {% assign current = all | where_exp: "p", "p.current != false" %} - {% if current.size > 0 %} -

{{ label }}:

-
-
- {% for person in current %} - {% include person.html person=person %} - {% endfor %} -
- {% endif %} + {% assign role_current = people[role] | where_exp: "p", "p.current != false" %} + {% for person in role_current %} + {% assign current_members = current_members | push: person %} + {% endfor %} {% endfor %} +
+ {% for person in current_members %} + {% include person.html person=person %} + {% endfor %} +
+

Former members