Skip to content
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

Enhanced category filtering #1583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

idanidan29
Copy link
Contributor

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

@idanidan29 idanidan29 requested a review from a team as a code owner March 23, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Enhancement: Allow blogs to have multiple categories and enable filtering by multiple categories
1 participant