Adding in a Search Bar? #581
Replies: 7 comments 2 replies
-
Adding a search bar is dead simple. The challenging step is to actually integrate a search engine.
Each option has tradeoffs that need to be discussed |
Beta Was this translation helpful? Give feedback.
-
This would be great ... |
Beta Was this translation helpful? Give feedback.
-
Looking forward to any updates on this... |
Beta Was this translation helpful? Give feedback.
-
Visually speaking I like solutions like ⌘K or kbar. But about the search bar, is it necessary? I understand a search bar being useful in a documentation site, something with a lot more similar or related content that would be hard to find or filter in another way, but for a academic/portfolio site, at least for me, seems a bit unnecessary. |
Beta Was this translation helpful? Give feedback.
-
Since Jekyll has no server side execution, we would have to rely on storing all the required content locally and search from there. If the blog posts increase a lot this would involve downloading the content of every post, so I don't think user-side search is the best option. As for the hosted solution, search.io was bought by algolia.com and will be closed, meilisearch free solution should be self hosted, which I believe doesn't work for our case. The remainder PSE and algolia.com would need an account with a login, but these are the best options IMHO. Edit: algolia have a plugin for jekyll, but it is not mantained anymore. |
Beta Was this translation helpful? Give feedback.
-
Revisiting this discussion, I believe client side execution is the best one, at least for sites without too much content. Found a couple of templates (just-the-docs and so-simple-theme) that implemented this using lunr.js. But |
Beta Was this translation helpful? Give feedback.
-
Started to tackle this on #2415. |
Beta Was this translation helpful? Give feedback.
-
Thoughts on adding a search bar at the top of the website? This can link to posts, announcements, etc.
Beta Was this translation helpful? Give feedback.
All reactions