When running statocles blog post without a title, a "new-post" directory gets created (the initial title of the post). When the edits are done, the title changes, and a new directory is created with the new title. But, the old directory does not get cleaned up, leaving an empty directory with nothing inside of it.
We should remove the directory if the title changes.
When running
statocles blog postwithout a title, a "new-post" directory gets created (the initial title of the post). When the edits are done, the title changes, and a new directory is created with the new title. But, the old directory does not get cleaned up, leaving an empty directory with nothing inside of it.We should remove the directory if the title changes.