A static site with a dynamic search function

Published 2017-04-09

A static site with a dynamic search function? Yes. Alternatively to embeddable scripts from Google or other search engines you can provide your visitors a custom search by indexing your content files directly.

hugo-lunr

hugo-lunr - A simple way to add site search to your static Hugo site using lunr.js. Hugo-lunr will create an index file of any html and markdown documents in your Hugo project

implementation

source code

How to Make lunr.js and Jekyll Work Together (with Gotchas)