Skip to content

Commit a37a288

Browse files
kjaymillerclaude
andcommitted
Update foundational supporters display with collapsible sections
- Replace article elements with details/summary for better UX - Add sorting to supporter lists for consistent ordering - Set current year as default open section - Improve navigation between different years 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 75be5ba commit a37a288

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

_layouts/_includes/foundational_supporters.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
<h2>Foundational Supporters</h2>
33
<p>Black Python Devs operates primarily on support from individuals. It is those supporters that serve as the foundation for what we do.</p>
44
<p>We would like to recognize our supporters who donate at least $200 each year.</p>
5-
{% for year in data %}
6-
<article>
7-
<h3>{{year}} Supporters</h3>
5+
6+
{% for data_year in data %}
7+
<details name="{{data_year}}" {% if data_year="" ="year" %}open{% endif %}>
8+
<summary>{{data_year}}</summary>
89
<div class="grid">
9-
{% for data_lists in data[year] | slice(3) %}
10+
{% for data_lists in data[data_year] | sort | slice(3) %}
1011
<section class="">
1112
<div>
1213
<ul>
@@ -18,7 +19,7 @@ <h3>{{year}} Supporters</h3>
1819
</section>
1920
{% endfor %}
2021
</div>
21-
</article>
22+
</details>
2223
{% endfor %}
2324
<p>You can view the archive of supporters<sup>*</sup> by year at https://github.com/blackpythondevs/blackpythondevs.</p>
2425
<p>* <sub>Those who marked their desire to remain anonymous have not been included</sub></p>

0 commit comments

Comments
 (0)