Skip to content

Commit 8999bfe

Browse files
fix people.md
1 parent 27e4b12 commit 8999bfe

1 file changed

Lines changed: 22 additions & 15 deletions

File tree

people.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@ title: People
55

66
# Team
77

8+
<div>
89
{% assign groups = "PI,Postdoc,PhD,Alumni" | split: "," %}
910

1011
{% for group in groups %}
11-
{% assign members = site.data.people | where: "group", group %}
12-
{% if members.size > 0 %}
13-
<h2 style="border-bottom: 2px solid #eee; padding-bottom: 10px;">{{ group }}</h2>
14-
<div class="people-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px;">
15-
{% for person in members %}
16-
<div class="person-card">
17-
<img src="{{ person.image | relative_url }}" style="width: 100px; height: 100px; object-fit: cover; border-radius: 50%;">
18-
<h3><a href="{{ person.website }}">{{ person.name }}</a></h3>
19-
<p class="role">{{ person.role }}</p>
20-
<p class="bio" style="font-size: 0.9em; color: #666;">{{ person.bio }}</p>
21-
</div>
22-
{% endfor %}
23-
</div>
24-
{% endif %}
25-
{% endfor %}
12+
{% assign members = site.data.people | where: "group", group %}
13+
{% if members.size > 0 %}
14+
15+
<h2 style="border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 30px;">{{ group }}</h2>
16+
17+
<div class="people-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px;">
18+
{% for person in members %}
19+
<div class="person-card">
20+
{% if person.image %}
21+
<img src="{{ person.image | relative_url }}" style="width: 100px; height: 100px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 10px;">
22+
{% endif %}
23+
<h3 style="margin: 5px 0;"><a href="{{ person.website }}" style="text-decoration: none; color: #333;">{{ person.name }}</a></h3>
24+
<p class="role" style="font-weight: bold; color: #555; margin: 5px 0;">{{ person.role }}</p>
25+
<p class="bio" style="font-size: 0.9em; color: #666; margin: 0;">{{ person.bio }}</p>
26+
</div>
27+
{% endfor %}
28+
</div>
29+
30+
{% endif %}
31+
{% endfor %}
32+
</div>

0 commit comments

Comments
 (0)