borkdude / quickblog

Light-weight static blog engine for Clojure and babashka
https://blog.michielborkent.nl/
MIT License
165 stars 28 forks source link

Multiple posts on same date have arbitrary order. #66

Closed UnwarySage closed 1 year ago

UnwarySage commented 1 year ago

I ran into a situation where I had several blog posts on one day, with titles like "Foo, Part 1" and "Foo, Part 2".

They appeared in jumbled order, and so I made this issue and accompanying PR to create an ordering of posts, sorting by date (descending), post title, and then file name.

As the last is definitely unique, this should ensure there's an unambiguous ordering of posts in a blog.