Skip to content

Enhanced category filtering #1583

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

Merged
merged 1 commit into from
May 31, 2025

Conversation

idanidan29
Copy link
Collaborator

What kind of change does this PR introduce?

Feature – This PR allows blog posts to belong to multiple categories instead of just one. and improve the filtering to filter more than one category

Issue Number:

Screenshots/videos:

Screenshot 2025-03-18 104823

*I added the category to the blog only for the example picture and did not actually change the blog in the pic.

Summary

  • The blog data structure is updated to support an array of categories.
  • The UI now renders each category as a separate clickable badge.
  • Users can filter by multiple categories at once.
  • Filtering logic has been improved to sort posts by the number of matching categories when multiple filters are selected.

Blog posts now support multiple categories by framing them like this in the blog file:

type:
  - Case Study
  - Engineering

This enhancement improves content organization, filtering functionality, and provides greater flexibility for authors.

Does this PR introduce a breaking change?
no

Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@benjagm benjagm merged commit a69e6b0 into json-schema-org:main May 31, 2025
@github-project-automation github-project-automation bot moved this from Unclear to Done in PR - Triage Group May 31, 2025
@idanidan29 idanidan29 mentioned this pull request Jun 20, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

✨ Enhancement: Allow blogs to have multiple categories and enable filtering by multiple categories
2 participants