Published vault notes have duplicate titles

It’s using the note (file) name as the title. That would be the first occurrence, and the second one would be the one that you put in the Markdown (look again — the second one is between “This is a modified” and “Posted to”, right where you put it).