Skip to content

Commit 48ca252

Browse files
committed
chore: derive archive page year list from data
1 parent 62ec02a commit 48ca252

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

site/archive.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ <h1 id="past-events-title">Archival Schools</h1>
9090
To view schools from a particular year, click on the year below to expand the archive.
9191
<br>
9292
<br>
93-
{% for year in (2018..2024) reversed %}
93+
{% assign archive_years = site.data.archive | map: 'year' | uniq | sort | reverse %}
94+
{% for year in archive_years %}
9495
<div class="panel-heading" style="background-color: #f7f7f7; padding: 10px; border-radius: 5px; margin-bottom: 10px; border: 1px solid #ccc;">
9596
<h2 class="panel-title">
9697
<a data-toggle="collapse" href="#collapse{{ year }}"> {{ year }} Schools</a>

0 commit comments

Comments
 (0)