Skip to content

Search input and pagination #238

Answered by avitorio
PiotrSierant asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @PiotrSierant, I'm sorry to hear you're having trouble with this.

Your message prompted me to try to get a search function working on my website.
And it does: https://www.andrevitorio.com/posts

I'll update the advanced blog example when I have some time. The solution involves importing the metadata.json file directly into your search component. Which might get too large if you have tons of posts. But I think it should be ok for most cases.

If you are going to have thousands of posts, maybe Algolia or another search service might be a better option.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avitorio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants