Search and Fonts
I’m proud to say that I have not updated the version of python! Still rockin’ the 3.11. I added a search bar, really leaning into some fun HTMX stuff. Also, it’s using the sqlite full text search as a backend. Has anyone done that ever? I think not.
Oh! I also switched to a very “DnD chic” font, IM Fell, which this article turned me on to. Not sure I’ll keep it. It might be a bit too D&D chic, but hey, I like the way it looks against this parchment-ey colored background.
What else? I added a search function, which was a great deal of fun, albeit overkill for a blog with like 8 posts. The fun part (to me…only to me) was how I did it. I’m using the SQLite full text search tooling, and basically loading all the posts into an in-memory fts5 database.
SQLite’s full text search, much like SQLite itself, is a lil’ champ. It doesn’t get fancy, but it seems to do just what I need out of the box. Could I use something else? Probably. Would it do much better for my extremely limited use case? Nah.
The search bar really leans into some htmx capabilities; like, there’s no javascript. Who needs it? Not me, that’s who. Also, I’m using the vanilla html “search” input type. The fun part there? Styling the built-in button. You’ve gotta mess around with this fun stuff: input[type="search"]::-webkit-search-cancel-button
. Good times!