jmacdotorg / plerd

Ultralight Dropbox-friendly Markdown-based blogging.
MIT License
112 stars 21 forks source link

Emoji-only post titles can introduce filename collisions #52

Open jmacdotorg opened 3 years ago

jmacdotorg commented 3 years ago

If you make post titled "😀" on a given day, and then make a separate post titled "🎩🎩" on that same day, they will result in identically named HTML files, such that one will overwrite the other.

The logic that decides posts' filenames needs to take account for this situation.

taskboy3000 commented 3 years ago

My port of plerd adds the time to the filename. This is one solution to this problem, but it creates urls that are in no way memorizable by a human.

Perhaps by recognizing a new attribute (alt-filename?), the post writer can manage this problem? In the event of a filename clash, maybe throw an error?