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

Search results not working with custom template #32

Closed maya closed 5 years ago

maya commented 8 years ago

I'm having trouble getting the custom template for search results working. The README says:

If you add a search-results.html to your site's layout_dir (typically_layouts), the plugin will use that layout instead.

I tried using my own layout out by adding a search-results.html file to _layouts but it returns no search results. I'm trying to use layouts: default in the frontmatter (_layouts/default.html) for my custom layout.

Can you please advise?

My branch: https://github.com/18F/beta.18f.gov/tree/add-blog (note: I currently changed the name of the layout search-results-test.html so that results work as normal)

cc: @jbarnicle