Finally.
After many months of putting JavaScript on my roadmap for this website, it’s here. I now have a working search bar, and I made it decently foolproof. It works under all the conditions I tried. The search bar works by seeing if the search term is a substring of each post’s title. If it isn’t, the script hides the post.
There’s probably a lot of optimization I can make, I barely got the 15-ish lines to work after a lot of fumbling and searching online. I’m still a complete newbie when writing JavaScript, after all.
I guess I can now flaunt that I’m a web dev though.