I use
Obsidian to write these notes, and
Blot to publish them. I have a private git repo for all my notes public and private, and the notes that get published on this website are a submodule in that larger git repo (the submodule is the git repo blot provides for syncing).