Skip to content

Commit 0d26de4

Browse files
authoredMay 18, 2022
Merge pull request #200 from code4lib/community-support
Looks good to me.
2 parents 7819a4d + 4a1591f commit 0d26de4

15 files changed

+290
-82
lines changed
 

‎_data/community-support-schedule.yml

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# The schedule for Community Support Volunteers, only affects
2+
# /conduct/#schedule
3+
# The volunteer(s) fields key off of objects in community-support.yml
4+
# Everything else is a string; "period" can be text or a time but we
5+
# usually use a label for the onsite schedule & time for online.
6+
7+
onsite:
8+
# template:
9+
# - day: Tuesday
10+
# period: Morning Preconferences
11+
# volunteers:
12+
# - surname
13+
# - othersurname
14+
- day: Monday
15+
period: Morning Preconferences
16+
volunteers:
17+
- slaughter
18+
- day: Monday
19+
period: Afternoon Preconferences
20+
volunteers:
21+
- phetteplace
22+
- yelton
23+
- day: Tuesday
24+
period: 8:30am - 11am ET
25+
volunteers:
26+
- slaughter
27+
- grynoch
28+
- day: Tuesday
29+
period: 11am - 1pm ET
30+
volunteers:
31+
- kayiwa
32+
- mesco
33+
- day: Tuesday
34+
period: 1pm - 3pm ET
35+
volunteers:
36+
- phetteplace
37+
- nelson
38+
- day: Tuesday
39+
period: 3pm - 5:15pm ET
40+
volunteers:
41+
- fox
42+
- yelton
43+
- day: Tuesday
44+
period: 6pm - 9pm Reception
45+
all-hands: true
46+
- day: Wednesday
47+
period: 8:30am - 11am ET
48+
volunteers:
49+
- grynoch
50+
- yelton
51+
- day: Wednesday
52+
period: 11am - 1pm ET
53+
volunteers:
54+
- nelson
55+
- fox
56+
- day: Wednesday
57+
period: 1pm - 3pm ET
58+
volunteers:
59+
- phetteplace
60+
- mesco
61+
- day: Wednesday
62+
period: 3pm - 5:15pm ET
63+
volunteers:
64+
- slaughter
65+
- kayiwa
66+
- day: Wednesday
67+
period: 7pm - 11pm Game Night
68+
volunteers:
69+
- nelson
70+
- phetteplace
71+
- day: Thursday
72+
period: 8:30am - 11am ET
73+
volunteers:
74+
- mesco
75+
- slaughter
76+
- day: Thursday
77+
period: 11am - 1pm ET
78+
volunteers:
79+
- nelson
80+
- fox
81+
82+
online:
83+
# template:
84+
# - day:
85+
# period:
86+
# volunteer:
87+
- day: Monday
88+
period: 9am - 12pm ET
89+
volunteer: giarlo
90+
- day: Monday
91+
period: 1:30pm - 4:30pm ET
92+
volunteer: gosselar
93+
- day: Tuesday
94+
period: 8:30am - 11am ET
95+
volunteer: sanford
96+
- day: Tuesday
97+
period: 11am - 1pm ET
98+
volunteer: giarlo
99+
- day: Tuesday
100+
period: 1pm - 3pm ET
101+
volunteer: gosselar
102+
- day: Tuesday
103+
period: 3pm - 5:15pm ET
104+
volunteer: gosselar
105+
- day: Wednesday
106+
period: 8:30am - 11am ET
107+
volunteer: sanford
108+
- day: Wednesday
109+
period: 11am - 1pm ET
110+
volunteer: sanford
111+
- day: Wednesday
112+
period: 1pm - 3pm ET
113+
volunteer: giarlo
114+
- day: Wednesday
115+
period: 3pm - 5:15pm ET
116+
volunteer: gosselar
117+
- day: Thursday
118+
period: 8:30am - 11am ET
119+
volunteer: sanford
120+
- day: Thursday
121+
period: 11am - 1pm ET
122+
volunteer: giarlo

‎_data/community-support.yml

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# alt text & img might be duplicated if person is also a speaker
2+
# no clean way to reference a property in speakers.yml
3+
# template:
4+
# surname:
5+
# name:
6+
# img: /assets/img/conduct/
7+
# img_alt:
8+
# slack_handle:
9+
# onsite: true
10+
# online: false
11+
12+
phetteplace:
13+
name: Eric Phetteplace
14+
img: /assets/img/speakers/eric-phetteplace.png
15+
img_alt: "Smiling white man with a mustache, beard, and receding hairline who is wearing a striped collared shirt."
16+
slack_handle: phette23
17+
onsite: true
18+
online: false
19+
20+
grynoch:
21+
name: Tess Grynoch
22+
img: /assets/img/conduct/tess-grynoch.jpeg
23+
img_alt: "Tess Grynoch, a white woman with short brown curly hair, smiling and proudly wearing her UMass Chan Medical School, Lamar Soutter Library sweater."
24+
slack_handle: "Tess Grynoch"
25+
onsite: true
26+
online: false
27+
28+
yelton:
29+
name: Andromeda Yelton
30+
img: /assets/img/conduct/andromeda-yelton.jpeg
31+
img_alt: "A smiling white woman with glasses, rosy cheeks, and curly brown hair. She's in three-quarter profile, looking at the camera like she's definitely up to something."
32+
slack_handle: thatandromeda
33+
onsite: true
34+
online: false
35+
36+
mesco:
37+
name: Ann Marie Mesco
38+
img: /assets/img/conduct/ann-marie-mesco.jpeg
39+
img_alt: "Woman with long blonde hair and blue eyes. Who is smiling, wearing glasses, and a black sweater."
40+
slack_handle: "Ann Marie"
41+
onsite: true
42+
online: false
43+
44+
sanford:
45+
name: Daniel Sanford
46+
img:
47+
img_alt:
48+
slack_handle: dans
49+
onsite: false
50+
online: true
51+
52+
gosselar:
53+
name: Jackie Gosselar
54+
img:
55+
img_alt:
56+
slack_handle: "Jackie Gosselar"
57+
onsite: false
58+
online: true
59+
60+
giarlo:
61+
name: Mike Giarlo
62+
img:
63+
img_alt:
64+
slack_handle: mjgiarlo
65+
onsite: false
66+
online: true
67+
68+
fox:
69+
name: Bobbi Fox
70+
img: /assets/img/conduct/bobbi-fox.jpeg
71+
img_alt: "A smiling large old white woman with glasses and long brown/grey hair."
72+
slack_handle: bobbifox
73+
onsite: true
74+
online: false
75+
76+
nelson:
77+
name: Chad Nelson
78+
img: /assets/img/conduct/chad-nelson.jpeg
79+
img_alt:
80+
slack_handle: bibliotechy
81+
onsite: false
82+
online: true
83+
84+
kayiwa:
85+
name: Francis Kayiwa
86+
img: /assets/img/conduct/francis-kayiwa.jpeg
87+
img_alt:
88+
slack_handle: "El Cromulente"
89+
onsite: true
90+
online: false
91+
92+
slaughter:
93+
name: Anne Slaughter
94+
img: /assets/img/conduct/anne-slaughter.jpeg
95+
img_alt:
96+
slack_handle: aslaughter
97+
onsite: true
98+
online: false
+31-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
- title: Event 1
2-
volunteers:
3-
- surname
4-
- othersurname
1+
# The schedule for Community Support Volunteers, only affects
2+
# /conduct/#schedule
3+
# The volunteer(s) fields key off of objects in community-support.yml
4+
# Everything else is a string; "period" can be text or a time but we
5+
# usually use a label for the onsite schedule & time for online.
56

6-
- title: Event 2
7-
volunteers:
8-
- surname
7+
onsite:
8+
# template:
9+
# - day: Tuesday
10+
# period: Morning Preconferences
11+
# volunteers:
12+
# - surname
13+
# - othersurname
14+
- day: Tuesday
15+
period: Morning Preconferences
16+
volunteers:
17+
- surname
18+
19+
- day: Tuesday
20+
period: Afternoon Preconferences
21+
volunteers:
22+
- othersurname
23+
- surname
24+
25+
online:
26+
# template:
27+
# - day:
28+
# period:
29+
# volunteer:
30+
- day: Tuesday
31+
period: 9am - 12pm MT
32+
volunteer: drrobot

‎_data/examples/community-support.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
surname:
22
name: Full Name
3-
img: assets/img/nopics/nopic2.jpg
3+
img: /assets/img/nopics/nopic2.jpg
4+
img_alt: "A beautiful soul whose eyes betray their very unoriginal name"
45
slack_handle: fnslack
56
onsite: true
67
online: false
78

89
othersurname:
910
name: Community Support
10-
img: assets/img/nopics/nopic3.jpg
11+
img: /assets/img/nopics/nopic3.jpg
12+
img_alt:
1113
slack_handle: communitysupport
1214
onsite: true
1315
online: false
1416

1517
drrobot:
1618
name: Dr Robot
17-
img: assets/img/nopics/nopic1.jpg
19+
img: /assets/img/nopics/nopic1.jpg
20+
img_alt: "Metal box with googly eyes glued on and a Mr. Potato Head nose"
1821
slack_handle: drrobot
1922
onsite: false
2023
online: true

‎_data/examples/online-duty-officer-schedule.yml

-47
This file was deleted.

‎_data/navs/conduct.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# url: /conduct#emergency
77
- name: Community Support Volunteers
88
url: /conduct#volunteers
9-
#- name: Community Support Volunteer Schedule
10-
# url: /conduct#schedule
9+
- name: Community Support Volunteer Schedule
10+
url: /conduct#schedule
1111
- name: Photography Policy
12-
url: /conduct#photography
12+
url: /conduct#photography

‎assets/img/conduct/.keep

Whitespace-only changes.
13.6 KB
Loading
6.64 KB
Loading
1.06 MB
Loading

‎assets/img/conduct/bobbi-fox.jpeg

35.7 KB
Loading

‎assets/img/conduct/chad-nelson.jpeg

675 KB
Loading
33.8 KB
Loading

‎assets/img/conduct/tess-grynoch.jpeg

38.6 KB
Loading

‎conduct/index.html

+30-22
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ <h4>{{ item.name }}</h4>
138138
{% else %}
139139
{%- comment %} remove Emergency menu link because we don't have the info yet
140140
NOTE: jQuery not available on the page yet. {% endcomment -%}
141-
<script>document.querySelector('ul.secondarynav a[href="#emergency"]').parentElement.remove()</script>
141+
<script>try { document.querySelector('ul.secondarynav a[href="#emergency"]').parentElement.remove() } catch(e) {}</script>
142142
{% endif %}
143143

144144
<div class="row">
@@ -189,7 +189,11 @@ <h3>On-Site Community Support Volunteers</h3>
189189
<div class="col-4">
190190
<div class="speaker-box text-center">
191191
<div class="speaker-box-inner">
192-
<img class="clip-circle-lg" src="/{{ volunteer.img }}" alt="{{ volunteer.name }}">
192+
{% if volunteer.img_alt != nil %}
193+
<img alt="{{ volunteer.img_alt }}" class="clip-circle-lg" src="{{ volunteer.img }}" alt="{{ volunteer.name }}">
194+
{% else %}
195+
<img alt="{{ volunteer.name }}" class="clip-circle-lg" src="{{ volunteer.img }}" alt="{{ volunteer.name }}">
196+
{% endif %}
193197
<h4 class="speaker-name">{{ volunteer.name }}</h4>
194198
</div>
195199
</div>
@@ -207,9 +211,10 @@ <h3>Online Community Support Volunteers</h3>
207211
{% for volunteer in online_volunteers %}
208212
<div class="col-4">
209213
<div class="text-center">
210-
<img class="clip-circle-lg" src="/{{ volunteer.img }}" alt="{{ volunteer.name }}">
211214
<h4 class="speaker-name">{{ volunteer.name }}</h4>
212-
<div class="speaker-mini"><p>Slack: {{ volunteer.slack_handle }}</p></div>
215+
<div class="speaker-mini">
216+
<p>Slack: {{ volunteer.slack_handle }}</p>
217+
</div>
213218
</div>
214219
</div>
215220
{% endfor %}
@@ -218,18 +223,15 @@ <h4 class="speaker-name">{{ volunteer.name }}</h4>
218223
</div>
219224
</div>
220225

221-
{% if site.data.community-support-schedule %}
226+
{% if site.data.community-support-schedule != nil %}
222227
<div class="row csv-schedule">
223228
<div class="col-12">
224-
<h2 id="schedule">Community Support Volunteer Schedule
225-
{% if site.data.conf.online-only-conference == false %}
226-
- On-Site
227-
{% else %}
228-
- Online
229-
{% endif %}
230-
</h2>
231-
{% for session in site.data.community-support-schedule %}
232-
<h3>{{ session.day }} — {{ session.time }}</h3>
229+
<h2 id="schedule">Community Support Volunteer Schedule</h2>
230+
231+
{% if site.data.community-support-schedule.onsite != nil %}
232+
<h3>On-Site</h3>
233+
{% for session in site.data.community-support-schedule.onsite %}
234+
<h3>{{ session.day }} — {{ session.period }}</h3>
233235
<div class="row">
234236
<div class="col-12 keynote-sequence sequence">
235237
{% if session.all-hands %}
@@ -239,7 +241,11 @@ <h3>{{ session.day }} — {{ session.time }}</h3>
239241
{% assign volunteer = site.data.community-support[volunteerId] %}
240242
<div class="speaker-box text-center">
241243
<div class="speaker-box-inner">
242-
<img class="clip-circle-lg" src="/{{ volunteer.img }}" alt="{{ volunteer.name }}">
244+
{% if volunteer.img_alt != nil %}
245+
<img alt="{{ volunteer.img_alt }}" class="clip-circle-lg" src="{{ volunteer.img }}" alt="{{ volunteer.name }}">
246+
{% else %}
247+
<img alt="{{ volunteer.name }}" class="clip-circle-lg" src="{{ volunteer.img }}" alt="{{ volunteer.name }}">
248+
{% endif %}
243249
<h4 class="speaker-name">{{ volunteer.name }}</h4>
244250
</div>
245251
</div>
@@ -248,14 +254,16 @@ <h4 class="speaker-name">{{ volunteer.name }}</h4>
248254
</div>
249255
</div>
250256
{% endfor %}
251-
{% if site.data.conf.online-only-conference %}
257+
{% endif %}
258+
259+
{% if site.data.community-support-schedule.online != nil %}
252260
<h3>Online</h3>
253-
{% for period in site.data.online-community-support-schedule %}
254-
{% assign officer = site.data.community-support[period.officer] %}
261+
{% for session in site.data.community-support-schedule.online %}
262+
{% assign volunteer = site.data.community-support[session.volunteer] %}
255263
<div class="row">
256-
<div class="col-2">{{ period.day }}</div>
257-
<div class="col-3">{{ period.interval }}</div>
258-
<div class="col-4">{{ officer.name }} ({{ officer.slack_handle }})</div>
264+
<div class="col-2">{{ session.day }}</div>
265+
<div class="col-3">{{ session.period }}</div>
266+
<div class="col-4">{{ volunteer.name }} ({{ volunteer.slack_handle }})</div>
259267
</div>
260268
{% endfor %}
261269
{% endif %}
@@ -264,7 +272,7 @@ <h3>Online</h3>
264272
{% else %}
265273
{%- comment %} remove CSV Schedule menu link because we don't have the info yet
266274
NOTE: jQuery not available on the page yet. {% endcomment -%}
267-
<script>document.querySelector('ul.secondarynav a[href="#schedule"]').parentElement.remove()</script>
275+
<script>try { document.querySelector('ul.secondarynav a[href="#schedule"]').parentElement.remove() } catch(e) {}</script>
268276
{% endif %}
269277

270278
{% if site.data.conf.online-only-conference == false %}

0 commit comments

Comments
 (0)
Please sign in to comment.