Skip to content

Commit 5c3e898

Browse files
committed
Not sure which match is made
1 parent 7c12256 commit 5c3e898

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

Members.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: Members
3+
permalink: /Members/
4+
---
5+
6+
{% assign people_sorted = site.people | sort: 'seniority' %}
7+
{% assign role_array = "pi|postdoc|gradstudent|researchstaff|visiting|others|alumni" | split: "|" %}
8+
9+
{% for role in role_array %}
10+
11+
{% assign people_in_role = people_sorted | where: 'position', role %}
12+
13+
<!-- Skip section if there's nobody -->
14+
{% if people_in_role.size == 0 %}
15+
{% continue %}
16+
{% endif %}
17+
18+
<div class="pos_header">
19+
{% if role == 'postdoc' %}
20+
<h3>Postdoctoral Fellows</h3>
21+
{% elsif role == 'pi' %}
22+
<h3>Principal Investigator</h3>
23+
{% elsif role == 'gradstudent' %}
24+
<h3>Graduate Students</h3>
25+
{% elsif role == 'researchstaff' %}
26+
<h3>Research Staff</h3>
27+
{% elsif role == 'visiting' %}
28+
<h3>Visiting Scholars</h3>
29+
{% elsif role == 'others' %}
30+
<h3>Honorary Members</h3>
31+
{% elsif role == 'alumni' %}
32+
<h3>Alumni</h3>
33+
{% endif %}
34+
</div>
35+
36+
{% if role != 'alumni' %}
37+
<div class="content list people">
38+
{% for profile in people_sorted %}
39+
{% if profile.position contains role %}
40+
<div class="list-item-people">
41+
<p class="list-post-title">
42+
{% if profile.avatar %}
43+
<a href="{{ site.baseurl }}{{ profile.url }}"><img class="profile-thumbnail" src="{{site.baseurl}}/images/people/{{profile.avatar}}"></a>
44+
{% else %}
45+
<a href="{{ site.baseurl }}{{ profile.url }}"><img class="profile-thumbnail" src="http://evansheline.com/wp-content/uploads/2011/02/facebook-Storm-Trooper.jpg"></a>
46+
{% endif %}
47+
<a class="name" href="{{ site.baseurl }}{{ profile.url }}">{{ profile.name }}</a>
48+
</p>
49+
</div>
50+
{% endif %}
51+
{% endfor %}
52+
</div>
53+
<hr>
54+
55+
{% else %}
56+
57+
<br>
58+
59+
| Who are they | When were they here | Where they went |
60+
| :------------- |:-------------| :-----------|
61+
| [Jingwen Ren](https://https://github.com/Jingwen7) | Graduate Student (2017-2022) | Facebook research|
62+
63+
{% endif %}
64+
{% endfor %}

0 commit comments

Comments
 (0)