Client-side Search in Hugo with Fuse.js

from blog Blog on hjr265.me, | ↗ original
Toph Help is built with Hugo - a static site generator. As you would expect with static sites, the pages are all generated ahead of time and hosted as plain HTML. You get all the benefits of static websites, but what about search? Client-side search is one way to work around this limitation of static websites. You build an array of objects...