@lyndhurst An alternative idea is to use date/time stamp as an ID. Discussed with different examples with @akashp and others in this thread.
Mine like this:
:id: 2021-04-05T144104
File name is constructed like this ${id}_${slug}.md
(I use markdown files).