Generating Hexo blog from Joplin notes

I use Joplin for my notes, because it’s self-hosted, has a good enough mobile app and I can share some of notebooks with my wife. Putting these TILs in there was a no-brainer. I had to figure out a solution to publish them somehow, though.

I found joplin-blog which uses Joplin’s Web Clipper API to fetch the notes based on a tag, and generates MD files ready to be used by Hexo. Hexo is a static site generator for blogs which I used in the past. I combined both, used Cactus theme, adjusted configuration a bit, made some minor tweaks in templates and I’m set. Now all that’s left is to set up deployment and automate it.