https://github.com/daydemir/logseq-compiler
It’s a Swift command line tool. Sorry, it’s the programming language I know best.
Needs to be improved to make it usable by other people, but the meat of what’s happening can be found in the code.
Logseq Compiler
extract the public pages and blocks from the json file
convert the public blocks and the associated assets into a set of files and folders that work with Hugo sections formatting
this gets put in the Notes Interface repo
LATER make Logseq Compiler usable by others