It seems there is an existing tildeblog script called bb (bashblog) that I could have used here instead.
I'd try it, but it writes to /blog, which would overwrite my existing blog, and I don't know how to override that.
Oh well. Things to play with while the pandemic rages...