Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Search pages #91

Open
herkyl opened this issue Jul 22, 2013 · 4 comments
Open

Search pages #91

herkyl opened this issue Jul 22, 2013 · 4 comments

Comments

@herkyl
Copy link

herkyl commented Jul 22, 2013

I'm not sure how to approach this. I would like to add a searchbar to my site.
Has anyone done this before?

@laktek
Copy link
Owner

laktek commented Jul 22, 2013

You can use an external service such as Google Custom Search - https://developers.google.com/custom-search/v1/overview

Also, it would be awesome if you can create a content plugin for Google Custom Search API ;)

@herkyl
Copy link
Author

herkyl commented Jul 22, 2013

What about generating a JSON file with all page titles, is this possible? I would happily contribute to this. (I'm looking into Puntch as a possible framework for a website I need to make)

@laktek
Copy link
Owner

laktek commented Jul 24, 2013

Yes, It's possible. You may look at the https://github.com/laktek/punch-sitemap-generator for inspiration.

@smola
Copy link

smola commented Aug 3, 2013

@robfox You can use lunr.js for the client-side part. There is a plugin for Jekyll you might look at for the generation stage: https://github.com/slashdotdash/jekyll-lunr-js-search

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants