-
Notifications
You must be signed in to change notification settings - Fork 393
Add blog filter functionality #2950
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
Signed-off-by: harsh Gupta <hg9336099029@gmail.com>
HarHarLinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your enthusiasm.
Please check that your editor applies our .editorconfig file when editing this repository; particularly you are missing some newlines at the end. See https://gist.github.com/olivertappin/19a95236d8b69f1c9eadfc799a9ab7fc for more info about newlines at the end of files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use scss in this project. please learn more at https://www.getzola.org/documentation/content/sass/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while we are enthusiastic about blog entries from the community about matrix, contributions such as this one is not what we are looking for on the blog.
| {% set title_lower = blog_page.title | lower %} | ||
| {% set category = "other" %} | ||
| {% if "this week in matrix" in title_lower %} | ||
| {% set category = "weekly" %} | ||
| {% elif "release" in title_lower %} | ||
| {% set category = "release" %} | ||
| {% elif "project" in title_lower %} | ||
| {% set category = "project" %} | ||
| {% elif "update" in title_lower or "account" in title_lower %} | ||
| {% set category = "announcement" %} | ||
| {% elif "corruption" in title_lower or "incident" in title_lower %} | ||
| {% set category = "incident" %} | ||
| {% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use our taxonomy-based categories, for example https://github.com/matrix-org/matrix.org/blob/main/content/blog/2025/10/2025-10-03-twim.md?plain=1#L8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might be ahead of the curve here - we need to decide how we want the filters to work
| <!-- Filter Buttons --> | ||
| <div id="filter-buttons" style="margin-bottom: 1rem;"> | ||
| <button class="filter-btn active" data-filter="all">All</button> | ||
| <button class="filter-btn" data-filter="weekly">This Week in Matrix</button> | ||
| <button class="filter-btn" data-filter="release">Releases</button> | ||
| <button class="filter-btn" data-filter="project">Projects</button> | ||
| <button class="filter-btn" data-filter="announcement">Announcements</button> | ||
| <button class="filter-btn" data-filter="incident">Incidents</button> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also need to decide, which categories we want listed here
|
This PR appears to be stale. Closing as per our Guidelines. You are welcome to reopen if you want to continue working on this. |
Resolves #2938
✔️ Checklist
<>to linkify them (learn more).[label](@/target.md)syntax./blogpage, especially for multiple posts on the same day. Prefer UTC format, e.g.2025-12-01T14:00:00Zfor Dec 1st, 2025, 2pm UTC.