💾 Archived View for kennedy.gemi.dev › site-search › about.gmi captured on 2024-03-21 at 15:09:58. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-02-05)
-=-=-=-=-=-=-
I wanteded to allow anyone to add a search feature to their capsule, without needing to be a programmer. It turns out to be easier than I expected. This works because Kennedy is indexing all of Geminispace, and it offers a `site:` modifier to return results only for a specific capsule.
Putting these together, People can create a special link they can include in their capsule which looks like this:
=> gemini://kennedy.gemi.dev/site-search/s/[DOMAIN NAME]/
When someone clicks that link, they can submit a search query and get results just for that capsule!
Create Site Search for your capsule
Back in the mid 2000's, Google offered a "Site Search" feature that allowed anyone to add Search functionality to their website. They did this by embeding some HTML into the page. I wanted to do something similar for Gemini, with the added challenge that gemtext doesn't have the same capabilities as HTML!