Blog Search and Premature Optimization
Head over to the search page to try out the newly added search feature! Hugo has a docs page on search options. Most solutions leverage lunr or fuse, both JavaScript client-side libraries. This theme, Papermod, supports search with fuse.js via Hugo’s native JSON output format. When enabled JSON output, I noticed file index.json had the full-text content of all blog posts. Fuse.js pulls this JSON client side and performs a fuzzy search on the content....