-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpeople.html
More file actions
45 lines (41 loc) · 2.02 KB
/
people.html
File metadata and controls
45 lines (41 loc) · 2.02 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
---
layout: page
title: Our Members
description: "Meet the team of researchers and alumni."
permalink: /people/
published: true
images: /assets/images/factslab-photo.jpg
---
{%- assign positions_order = "Faculty,Postdoc,PhD,Masters,Undergrad,Postdoc Alumni,PhD Alumni,Masters Alumni,Undergrad Alumni,Other Alumni" | split: ',' -%}
<section id="people" class="people__section nopad">
<div class="filter-wrapper">
<span class="arrow left-arrow" onclick="scrollLeftAction()">❮</span>
<div id="filterContainer" class="scroll-container">
<button class="filter-btn active" onclick="filterSelection('all')">All</button>
{%- for position in positions_order -%}
{%- assign filtered_people_check = site.people | where: 'category', position -%}
{%- if filtered_people_check.size > 0 -%}
<button class="filter-btn" onclick="filterSelection('{{ position | downcase | replace: ' ', '-' }}')">{{ position }}</button>
{%- endif -%}
{%- endfor -%}
</div>
<span class="arrow right-arrow" onclick="scrollRightAction()">❯</span>
</div>
<div class="people-grid">
{%- for position in positions_order -%}
{%- assign filtered_people = site.people | where: 'category', position -%}
{%- if filtered_people.size > 0 -%}
{%- assign sorted_people = filtered_people | sort: 'order' -%}
{%- for p in sorted_people -%}
<div class="person-page__grid {{ position | downcase | replace: ' ', '-' }}" style="display: {%- case position -%}{%- when 'Postdoc Alumni','PhD Alumni','Masters Alumni','Undergrad Alumni','Other Alumni' -%}none{%- else -%}block{% endcase %}">
<a href="{{ p.url }}" class="person-page">
<img width="400" style="width: 100%; max-width: 280px; aspect-ratio: 1;" src="{{ p.image }}" alt="{{ p.title }}">
<p class="person-page__name">{{ p.title }}</p>
</a>
</div>
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
</div>
</section>
<script src="/assets/js/people-filter.js"></script>