Skip to content

Conversation

@ritwik1709
Copy link

Sort Foundation Guardians Alphabetically in the Template

Summary:
This PR updates the guardians.html Tera template to automatically sort the Foundation guardians alphabetically by name when rendering the page. This ensures the list is always presented in a consistent, easy-to-navigate order, without requiring manual sorting in the data source.
Details:

Uses Zola’s Tera template filter:
{% for guardian in guardians_data.guardians | sort(attribute="name") %}

No changes to the underlying TOML data file; sorting is handled at display time.
Addresses #2755 and improves maintainability for future additions.

Why:
Keeps the Foundation members list organized and user-friendly.

@HarHarLinks
Copy link
Collaborator

HarHarLinks commented May 24, 2025

This PR is not comprehensive enough insofar that it only addresses one constituency. This PR is addressing a non-issue instead of the presumably intended #2756. Closing in favor of the more complete #2763.

@HarHarLinks HarHarLinks added aesthetic Visual inconsistencies or improvements bug Something is broken. foundation Things that are foundation related or external services mentioning matrix that need changes labels May 24, 2025
@ritwik1709 ritwik1709 deleted the sort-foundation-guardians-alphabetically branch May 24, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aesthetic Visual inconsistencies or improvements bug Something is broken. foundation Things that are foundation related or external services mentioning matrix that need changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants