I use TiddlyWiki/drift for my own notes [0], hosting it with a php script to get a public and a private version [1]. May not fit for everyone of course, but easy to tweak and perfect for me!
[0] https://akhater.github.io/drift/
[1] https://groups.google.com/g/tiddlywiki/c/GRkskZRzj_o/m/M0QVJ...