4 ms·
Search could easily be done if content is indexed in json files. CDN hosting of a static site is nearly $0 so def the best option in this case. Plenty of provi
by navd 10y ago
Search could easily be done if content is indexed in json files.
CDN hosting of a static site is nearly $0 so def the best option in this case. Plenty of providers give free PRO service to OSS projects as well (i.e. netlify)
- acdha 10y agoLunr.js is designed for exactly that use-case and the example shows that workflow pumping a bunch of documents into an index and saving it as JSON which is loaded client-side: https://github.com/olivernn/lunr.js https://github.com/olivernn/lunr.js
- davidak 10y agoAnother JS search for static websites is http://www.tipue.com/search/ http://www.tipue.com/search/ It works very well for me on a site with about 300 pages.