forked from CSSUoB/cssuob.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommittee-archive.html
77 lines (75 loc) · 2.36 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
layout: page
title: Committee Archive
styles:
- /css/committee.css
scripts:
- /js/fadein.js
---
<h1>Committee Archive</h1>
{% assign committees = site.data.committee | sort %}
{% for committees in committees reversed %}
{% assign committee = committees[1] %}
{% if committee.current == true %}
{% 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">
{{ person.role }}
|
{% if person.start-date and person.end-date %}
{{ person.start-date | date: "%b %Y" }} -
{{ person.end-date | date: "%b %Y" | default: "Present" }}
{% endif %}
</p>
<p class="bio">
{{ person.bio }}
</p>
</div>
</div>
{% endif %}
{% endfor %}
{% endunless %}
{% else %}
<h2>{{ committee.academic_year }}</h2>
<div class="person-container fadein-container">
{% for person in committee.people %}
<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">
{{ person.role }}
</p>
<p class="bio">
{{ person.bio }}
</p>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endfor %}