Skip to content

Commit 4844449

Browse files
authored
add 2026 to index (#3384)
* add 2026 to index Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com> * autogenerate the election index Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com> --------- Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com>
1 parent 69818f2 commit 4844449

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
+++
22
title = "Governing Board Elections"
33
sort_by = "title"
4+
template = "elections.html"
45
# Hidden from navigation. The links are still accessible.
56
extra.navigation = false
67
+++
7-
8-
* [2025](2025) elections
9-
* [2024](2024) elections

templates/elections.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends "section.html" %}
2+
{% block content %}
3+
<div class="content">
4+
<header>
5+
<h1>{{ section.title }}</h1>
6+
</header>
7+
8+
<ul>
9+
{% for subsection_path in section.subsections | reverse %}
10+
{% set subsection = get_section(path=subsection_path) %}
11+
<li><a href="{{ subsection.path }}">{{ subsection.title }}</a></li>
12+
{% endfor %}
13+
{% for page in section.pages | reverse %}
14+
<li><a href="{{ page.path }}">{{ page.title }}</a></li>
15+
{% endfor %}
16+
</ul>
17+
</div>
18+
{% endblock content %}

0 commit comments

Comments
 (0)