Writing tagged "zola"
Static site search optimization
I get this recurring urge to have a nice website, and usually fail to pull through after doing some interesting things and subsequently losing interest. The jury is still out on how it’s going to go this time, but I certainly reached an interesting thing: Search without a full-blown search engine.
Zola, the static page renderer that’s in use here, comes with support for two search libraries out of the box:
- Fuse.js (a few more features)
- Elasticlunr.js (leaner bundle)
Both have as basic operating principle that the static page renderer generates an index file that is loaded and searched directly on the client. Elasticlunr.js has a bit smaller footprint, so I went with this one.