18F / jekyll_pages_api_search

DEPRECATED - Jekyll search plugin based on lunr.js and jekyll_pages_api

Home Page:https://rubygems.org/gems/jekyll_pages_api_search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display snippet of matching result in results

maya opened this issue · comments

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