Norstone / norstone.github.io

0 stars 4 forks source link

Site Search #275

Open RassanGrant opened 6 years ago

RassanGrant commented 6 years ago

Hey @vleong2332 -

We talked implementing some kind of site search awhile back. I found a couple of Jekyll templates that have implementations - Is it easier to know how to implement this once you have a template?

https://nubia-jekyll.netlify.com/ https://aspirethemes.com/docs/nubia-jekyll/

vleong2332 commented 6 years ago

@RassanGrant is this for the blog or the website?

albertvolkman commented 6 years ago

For site search I've been looking at using Lunr.js. There's also a hosted version-

https://www.algolia.com/

vleong2332 commented 6 years ago

Those look very promising.

Just in case you weren't aware, @RassanGrant, the search functionality has mainly 2 parts: the UI visible to the user and the behind-the-scene mechanics. The theme you posted uses ghostHunter, which, in turn, uses lunr.js for the behind-the-scene mechanic that @albertvolkman mentioned.

If you like the theme, we could pick that as a starting point. If not, we can still use lunr.js with our own "theme".

Looking over the docs briefly, Integrating lunr.js will include at least the following:

Any questions so far?