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

Improve search file #418

Merged
merged 6 commits into from
Dec 17, 2023
Merged

Improve search file #418

merged 6 commits into from
Dec 17, 2023

Conversation

sylhare
Copy link
Owner

@sylhare sylhare commented Dec 13, 2023

Description

The liquid markup creates a lot of space which are not necessary for the generated json. Compressing it with fewer spaces and empty lines should make it faster.

  • Added search through pages
  • Extended search to any collections (not just portfolio)
  • Add excluded key work to exclude page from the search

Copy link

@EverettYou EverettYou Dec 15, 2023

Choose a reason for hiding this comment

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

I recommend reverting this commit. This makes all the hidden pages not searchable. But they are just hidden from the navigation bar, not meant to be hidden from the search. Or maybe introduce another page property like searchable to indicate if a page should appear in the search.

Copy link
Owner Author

@sylhare sylhare Dec 15, 2023

Choose a reason for hiding this comment

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

Indeed that was the intent, hidden would mean both from search and navigation bar. Let me think for a solution to have a page hidden from the navigation bar but shown in the search 🤔 (I'd rather have a property to hide it from the search result then)

Copy link
Owner Author

Choose a reason for hiding this comment

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

@EverettYou I added an excluded option, instead of using hide. Should be better 👍

@sylhare sylhare merged commit 7c6f81f into master Dec 17, 2023
5 checks passed
@sylhare sylhare deleted the search branch February 13, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants