8000 Sort Foundation guardians alphabetically in the template using Tera's… by ritwik1709 · Pull Request #2762 · matrix-org/matrix.org · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sort Foundation guardians alphabetically in the template using Tera's… #2762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. meta 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. meta 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
0