Skip to content

Commit 8068a5b

Browse files
authored
Merge pull request #66 from vbilsmith/team-affiliations
Add member affiliation filters
2 parents f725b48 + 0463bad commit 8068a5b

8 files changed

Lines changed: 57 additions & 1 deletion

File tree

_includes/member-affiliations.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% assign affiliations = include.affiliations | default: empty %}
2+
{% assign affiliations = affiliations | join: "," | split: "," | array_filter %}
3+
4+
{% if affiliations.size > 0 %}
5+
<div class="tags">
6+
{% for affiliation in affiliations %}
7+
<a
8+
href="{{ '/team' | relative_url }}?search=&quot;{{ affiliation }}&quot;"
9+
class="tag"
10+
data-tooltip="Show team members with {{ affiliation }}"
11+
>
12+
{{ affiliation }}
13+
</a>
14+
{% endfor %}
15+
</div>
16+
{% endif %}

_includes/portrait.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
| first
44
| default: include
55
%}
6+
{% assign affiliations = member.affiliations | default: empty %}
7+
{% assign affiliations = affiliations | join: ", " %}
68

79
<div class="portrait-wrapper">
810
<a
@@ -11,6 +13,7 @@
1113
{% endif %}
1214
class="portrait"
1315
data-style="{{ include.style }}"
16+
data-search="{{ affiliations }}"
1417
aria-label="{{ member.name | default: "member link" }}"
1518
>
1619
<img

_layouts/member.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
{{ content }}
2222

23+
{% include member-affiliations.html affiliations=page.affiliations %}
24+
2325
{% assign related_posts = site.posts
2426
| where_exp: "post", "post.people contains page.slug"
2527
%}

_members/alina_yildirim.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Alina Yildirim '26
33
image: images/alina_yildirim.jpg
44
description: Honors Thesis Student & McKinley Fellow
55
role: undergrad
6+
affiliations:
7+
- Honors Thesis Student
8+
- McKinley Fellow
69
---
710

811
Alina is a senior majoring in Computer Science and Statistics. She is interested in biomedical AI, especially how machine learning and language-based methods can help connect mouse and human disease. Her honors thesis focuses on comparing how experiments are described across species and what that means for translation.

_members/hildana_shiferaw.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ image: images/hildana_shiferaw.jpg
44
description: Honors Thesis Student & McKinley Fellow
55
role: undergrad
66
group: alum
7+
affiliations:
8+
- Honors Thesis Student
9+
- McKinley Fellow
710
links:
811
---
912
Hildana graduate from Smith in 2025 with B.A. in Biological Sciences and a B.S. in Engineering Science. She completed the VBIL's first honors thesis, where she assessed the viability of miRNA markers for assessing ovarian cancer risk, with the goal of developing point of care diagnostic testing. After graduating from Smith, she went on to pursue a [Ph.D. in Computational Biology and Biomedical Informatics at Yale University](https://cbb.yale.edu/students).

_members/zoe_plumridge.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Zo&#235; Plumridge '26
33
image: images/zoe_plumridge.jpeg
44
description: Honors Thesis Student
55
role: undergrad
6+
affiliations:
7+
- Honors Thesis Student
68
links:
79
github: zrplumridge
810
---

_scripts/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
{
77
// elements to filter
8-
const elementSelector = ".card, .citation, .post-excerpt";
8+
const elementSelector = ".card, .citation, .post-excerpt, .portrait";
99
// search box element
1010
const searchBoxSelector = ".search-box";
1111
// results info box element

team/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@ nav:
99

1010
Below, learn about the current and past members of the VBIL. We are always open to working with new students! Please use the contact page to reach out.
1111

12+
{% assign affiliation_filters = site.members
13+
| map: "affiliations"
14+
| join: ","
15+
| split: ","
16+
| array_filter
17+
| uniq
18+
| sort
19+
%}
20+
21+
{% include search-box.html %}
22+
23+
{% if affiliation_filters.size > 0 %}
24+
<div class="tags">
25+
{% for affiliation in affiliation_filters %}
26+
<a
27+
href="{{ '/team' | relative_url }}?search=&quot;{{ affiliation }}&quot;"
28+
class="tag"
29+
data-tooltip="Show {{ affiliation }} members"
30+
>
31+
{{ affiliation }}
32+
</a>
33+
{% endfor %}
34+
</div>
35+
{% endif %}
36+
37+
{% include search-info.html %}
38+
1239
{% include list.html data="members" component="portrait" filters="role: pi, group: " %}
1340
{% include list.html data="members" component="portrait" filters="role: postdoc, group: " %}
1441
{% include list.html data="members" component="portrait" filters="role: phd, group: " %}

0 commit comments

Comments
 (0)