Interesting solution! Will be remembered for other problems. Thanks!
You’re right: I had a different goal. I wanted to write a recipe for HUGO dummies that can be used without any programming or server admin knowledge.
I was also worried at first that it might be a bit slow. But I think for 90% of HUGO websites it will probably be enough and run super fast. The example https://bienenkiste.de/suchen/ searches almost 200 pages. The two JSON files together are ~650 KB in size. Many homepages are 10 times “heavier” today. And the javascript runs very very fast.
The main problem with larger sites is that I have not provided pagination. But you can compensate this a little by increasing minlength
.
3 Likes