From 0463bad889e00075720b9be70e187a013e874f5d Mon Sep 17 00:00:00 2001 From: HM Rando Date: Thu, 16 Apr 2026 19:38:20 -0400 Subject: [PATCH] Add member affiliation filters --- _includes/member-affiliations.html | 16 ++++++++++++++++ _includes/portrait.html | 3 +++ _layouts/member.html | 2 ++ _members/alina_yildirim.md | 3 +++ _members/hildana_shiferaw.md | 3 +++ _members/zoe_plumridge.md | 2 ++ _scripts/search.js | 2 +- team/index.md | 27 +++++++++++++++++++++++++++ 8 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 _includes/member-affiliations.html diff --git a/_includes/member-affiliations.html b/_includes/member-affiliations.html new file mode 100644 index 00000000..ccd07c80 --- /dev/null +++ b/_includes/member-affiliations.html @@ -0,0 +1,16 @@ +{% assign affiliations = include.affiliations | default: empty %} +{% assign affiliations = affiliations | join: "," | split: "," | array_filter %} + +{% if affiliations.size > 0 %} +
+ {% for affiliation in affiliations %} + + {{ affiliation }} + + {% endfor %} +
+{% endif %} diff --git a/_includes/portrait.html b/_includes/portrait.html index dade824f..299534c2 100644 --- a/_includes/portrait.html +++ b/_includes/portrait.html @@ -3,6 +3,8 @@ | first | default: include %} +{% assign affiliations = member.affiliations | default: empty %} +{% assign affiliations = affiliations | join: ", " %}
0 %} + +{% endif %} + +{% include search-info.html %} + {% include list.html data="members" component="portrait" filters="role: pi, group: " %} {% include list.html data="members" component="portrait" filters="role: postdoc, group: " %} {% include list.html data="members" component="portrait" filters="role: phd, group: " %}