-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpeople.html
More file actions
108 lines (100 loc) · 3.98 KB
/
Copy pathpeople.html
File metadata and controls
108 lines (100 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
title: People
layout: default
---
{% assign sorted_people = site.people | sort: "dates.start" %}
{% assign sorted_alumni = site.people | sort: "dates.end" | reverse %}
{% comment %}
Liquid cannot sort directly by a value inside prior_lab_roles. Build sortable
ISO-date/umid strings from each Ph.D. student role, then sort newest first.
{% endcomment %}
{%- capture phd_alumni_sort_index -%}
{%- for person in site.people -%}
{%- if person.publish and person.status contains 'phd_alumni' -%}
{%- assign phd_end_date = nil -%}
{%- for role in person.prior_lab_roles -%}
{%- if role.position contains 'Ph.D. student' and role.end -%}
{%- assign phd_end_date = role.end -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}
{%- if phd_end_date -%}
{{- phd_end_date | date: "%Y-%m-%d" -}}::{{- person.umid -}}||
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endcapture -%}
{% assign sorted_phd_alumni = phd_alumni_sort_index | split: "||" | sort | reverse %}
{% assign current_count = 0 %}
{% for person in site.people %}
{% if person.publish and person.status contains 'current' %}
{% assign current_count = current_count | plus: 1 %}
{% endif %}
{% endfor %}
<div class="site-page people-page">
<header class="site-page-header">
<div class="site-page-header-copy">
<h1>People</h1>
<p>Our lab brings together computational and experimental scientists working across regulatory genomics, long-read sequencing, human variation, and method development.</p>
</div>
<div class="site-page-stat" aria-label="Current lab membership">
<strong>{{ current_count }}</strong>
<span>current members</span>
</div>
</header>
<section class="people-section" aria-labelledby="current-members-heading">
<div class="section-heading section-heading--bordered">
<p class="section-eyebrow">The Boyle Lab</p>
<h2 id="current-members-heading">Current members</h2>
</div>
<div class="people-grid">
{% for person in sorted_people %}
{% if person.publish and person.status contains 'current' %}
{% include person_card.html person=person %}
{% endif %}
{% endfor %}
</div>
</section>
<section class="people-section" aria-labelledby="phd-alumni-heading">
<div class="section-heading section-heading--bordered">
<p class="section-eyebrow">Alumni</p>
<h2 id="phd-alumni-heading">Ph.D. and postdoctoral alumni</h2>
</div>
<div class="people-grid people-grid--alumni">
{% for alumni_sort_key in sorted_phd_alumni %}
{% assign alumni_sort_parts = alumni_sort_key | split: "::" %}
{% assign alumni_umid = alumni_sort_parts[1] %}
{% assign person = site.people | where: "umid", alumni_umid | first %}
{% if person %}
{% include person_card.html person=person role="Doctoral student" %}
{% endif %}
{% endfor %}
</div>
</section>
<section class="people-section" aria-labelledby="other-alumni-heading">
<div class="section-heading section-heading--bordered">
<p class="section-eyebrow">Alumni</p>
<h2 id="other-alumni-heading">Other lab alumni</h2>
</div>
<div class="people-grid people-grid--alumni">
{% for person in sorted_alumni %}
{% if person.publish and person.status contains 'alumni' %}
{% include person_card.html person=person %}
{% endif %}
{% endfor %}
</div>
</section>
<section class="people-section" aria-labelledby="rotation-students-heading">
<div class="section-heading section-heading--bordered">
<p class="section-eyebrow">Past trainees</p>
<h2 id="rotation-students-heading">Past rotation students</h2>
</div>
<div class="people-grid people-grid--alumni">
{% for person in sorted_alumni %}
{% if person.publish and person.status contains 'rotation' %}
{% include person_card.html person=person %}
{% endif %}
{% endfor %}
</div>
</section>
</div>