18F / jekyll_pages_api_search

DEPRECATED - Jekyll search plugin based on lunr.js and jekyll_pages_api
https://rubygems.org/gems/jekyll_pages_api_search
Other
39 stars 8 forks source link

Display snippet of matching result in results #33

Open maya opened 8 years ago

maya commented 8 years ago

Currently, a search returns a list with page/post titles.

screen shot 2016-07-11 at 8 10 48 am

This doesn't give much context of where the result was found to see if it's relevant for what I was looking for. Is it possible to display a snippet of content containing where the matching terms were located, just like Google does?

Below is a search for Jekyll and jekyll is highlighted in the content.

screen shot 2016-07-11 at 8 07 55 am