DEV Community

Discussion on: Search Your Site via the Omnibar - Even Static Sites

Collapse
 
rpalo profile image
Ryan Palo

Glad I could help!

So, the important bit for getting your search form to work with omni-search (the URLSearchParams) is just Vanilla JavaScript. The rest of the article is essentially meant to assume you've already got search working on your site already. I just include a link (and sample code from) my personal site because I'd previously written an article on how to add a Vue-based search to your static site. You should be able to use the search params with any setup in much the same manner.

If you'd like some help getting yours hooked up, though, let me know. I'd be happy to try to help :) Maybe I'll do additional tutorials for the other JS frameworks (including JQuery -- there's nothing wrong with a tool that does the job you need it to). I have a big list of posts I've been meaning to write!

Collapse
 
maruru profile image
Marco Alka

Thank you for your answer. Seems I completely over-read that one line of code :)