Skip to content

Commit d60101f

Browse files
authored
Merge pull request #21 from code4lib/schedule-time-ranges
Making the top-level schedule time ranges data-driven instead of hardcoded
2 parents 923d39d + d74d2e8 commit d60101f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

_data/conf.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ have-schedule-details: true
4343
have-menus: false
4444

4545
# day 0 = dummy day so JS indexing can line up with human-readable semantics of which day of the conference something is happening
46+
# note: these dates and times are used in the top-level schedule page, but the more granular
47+
# schedule is taken from schedule.yml, so be careful to make sure that they agree.
4648
days:
4749
- weekday: Sunday
4850
date: March 9th
@@ -52,15 +54,19 @@ days:
5254
date: March 10th
5355
# date in a form that JS Date() constructor understands
5456
date-data: 2025-03-10T23:59
57+
time: 9AM to 5:15PM
5558
- weekday: Tuesday
5659
date: March 11th
5760
date-data: 2025-03-11T23:59
61+
time: 9AM to 5:15PM
5862
- weekday: Wednesday
5963
date: March 12th
6064
date-data: 2025-03-12T23:59
65+
time: 9AM to 1:15PM
6166
- weekday: Thursday
6267
date: March 13th
6368
date-data: 2025-03-13T23:59
69+
time: 9AM to 4:30PM
6470
schedule-note: The main conference will be on Monday, March 10 through Wednesday, March 12, followed by post-conference workshops on Thursday, March 13. Decisions about this year's conference schedule were based on venue availability. Keep an eye on <a href="/schedule/">the schedule</a> for details as the program is finalized.
6571

6672
####################

schedule/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h4>Tours</h4>
3434

3535
<div class="row">
3636
<div class="col-12 col-md-3 text-right">
37-
<h3>12PM to 5:30PM
37+
<h3>{{ site.data.conf.days[1].time }}
3838
<br/><div class="timezone">{{ site.data.conf.timezone }} Time</div>
3939
</h3>
4040
</div>
@@ -124,7 +124,7 @@ <h4>Morning Run</h4>
124124

125125
<div class="row">
126126
<div class="col-12 col-md-3 text-right">
127-
<h3>8AM to 5:30PM
127+
<h3>{{ site.data.conf.days[1].time }}
128128
<br/><div class="timezone">{{ site.data.conf.timezone }} Time</div>
129129
</h3>
130130
</div>
@@ -170,7 +170,7 @@ <h2>{{site.data.conf.days[3].weekday}}, {{site.data.conf.days[3].date}}</h2>
170170

171171
<div class="row">
172172
<div class="col-12 col-md-3 text-right">
173-
<h3>8AM to 5:30PM
173+
<h3>{{site.data.conf.days[3].time }}
174174
<br/><div class="timezone">{{ site.data.conf.timezone }} Time</div>
175175
</h3>
176176
</div>
@@ -282,7 +282,7 @@ <h2>{{site.data.conf.days[4].weekday}}, {{site.data.conf.days[4].date}}</h2>
282282

283283
<div class="row">
284284
<div class="col-12 col-md-3 text-right">
285-
<h3>9AM to 4:30PM
285+
<h3>{{ site.data.conf.days[4].time }}
286286
<br/><div class="timezone">{{ site.data.conf.timezone }} Time</div>
287287
</h3>
288288
</div>

0 commit comments

Comments
 (0)