4 ms·
Hugo and Cloudflare Pages is basically free, but you need to find somewhere to host your search.
by fmajid 4y ago
Hugo and Cloudflare Pages is basically free, but you need to find somewhere to host your search.
- nindalf 4y agoCloudflare workers?
- meto 4y agoI use Astro SSG and Cloudflare Pages. I use https://github.com/cloudcannon/pagefind https://github.com/cloudcannon/pagefind for search on my Astro setup. You can test the search functionality here https://tinyrocket.pages.dev/ https://tinyrocket.pages.dev/. From its repo: "Pagefind runs after any static site generator and automatically indexes the built static files. Pagefind then outputs a static search bundle to your website, and exposes a JavaScript search API that can be used anywhere on your site." Pagefind is cool!
- fmajid 4y agoI don’t want to force JavaScript onto my users and wrote my own full-text search for Hugo that is skinned with your Hugo theme for a seamless look (only the URL changes): https://GitHub.com/fazalmajid/fts5index https://GitHub.com/fazalmajid/fts5index Demo: use the search sidebar on blog.majid.info. But yes, what you describe is how search works on Sphinx-generated documentation sites and is quite impressive technology even before WASM.