forked from CSSUoB/cssuob.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
committee-archive.html
63 lines (61 loc) · 2.05 KB
/
committee-archive.html
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
---
layout: page
title: Committee Archive
styles:
- /css/committee.css
- /css/flags.css
scripts:
- /js/fadein.js
---
<h1>Committee Archive</h1>
{% assign committees = site.data.committee | sort %}
{% for committees in committees reversed %}
{% assign committee = committees[1] %}
{% assign empty_list = true %}
{% for member in committee.people %}
{% if member.end-date %}
{% assign empty_list = false %}
{% break %}
{% endif %}
{% endfor %}
{% unless empty_list %}
<h2>{{ committee.academic_year }}</h2>
<div class="person-container fadein-container">
{% for person in committee.people %}
{% if person.end-date %}
<div class="person fadein hidden">
<img class="picture" src="{{ person.picture | relative_url }}" alt="picture of {{ person.name }}">
<div class="details">
<span class="name">{{ person.name }}</span>
{% if person.pronouns %}
<span class="pronouns">
{{person.pronouns}}
</span>
{% endif %}
<p class="role">
{% if committee.prefix %}{{committee.prefix}}{% endif %}
{{ person.role }}
{% if committee.postfix %}{{committee.postfix}}{% endif %}
{% if person.flags %}
{% for flag in person.flags %}
{% if site.data.committee-flags.flags[flag] %}
<span class="flag-{{ flag }}" title="{{ site.data.committee-flags.flags[flag].description }}"><!--
-->{{ site.data.committee-flags.flags[flag].text }}<!--
--></span>
{% endif %}
{% endfor %}
{% endif %}
|
{{ person.start-date | date: "%b %Y" }} -
{{ person.end-date | date: "%b %Y" | default: "Present" }}
</p>
<p class="bio">
{{ person.bio }}
</p>
</div>
</div>
{% endif %}
{% endfor %}
{% endunless %}
</div>
{% endfor %}