From 8698ee348c75de9b8dc52271965fb158ca45f070 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 12 May 2026 20:08:16 +0000 Subject: [PATCH] people: drop role section headers; one unified card flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cards now appear in YAML order (PI first, then each role group in the order defined in people.yml). The per-role

headers (Principal Investigator / Graduate Students / Postdocs / Research Associates / Undergraduate Students) are gone — visitors see the individual person.title on each card instead. Former members section is unchanged (still grouped by role with h3 subheadings since alumni are listed as text, not cards). Note: John's entry in _data/people.yml has no `title` field, so his card no longer has any role context shown. Add `title: Principal Investigator` to his entry if you want it labeled. --- people.html | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) 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