BennyHallett / obelisk

Static Site Generator written in Elixir.
MIT License
393 stars 34 forks source link

Order of multiple posts from the same day #16

Closed optikfluffel closed 9 years ago

optikfluffel commented 9 years ago

Hi, maybe we need to save the time as well, because when you do more than one post per day they come out in an reversed alphabetical order.

screen shot 2014-12-20 at 00 43 41

BennyHallett commented 9 years ago

Hi, thanks for raising this. I agree, we should be taking time into account here.

optikfluffel commented 9 years ago

What is your opinion on how to handle this issue, would it be better to change all the filenames to include the time or just add it to the front matter on top of the file and go from there?

BennyHallett commented 9 years ago

I feel like the front-matter makes more sense. It might be pretty ugly having both the time and date in the filename.

I also like the idea of removing the date stamp from the filename all together.

optikfluffel commented 9 years ago

Would be nice to get rid of the date stamp, but then we would need something like a folder structure to keep the posts organised, something like posts/year/month/title.markdown. Keeping this in mind I'd like the idea of keeping the filenames as they are now but adding the date to the front matter most.

BennyHallett commented 9 years ago

Yeah I agree, I also like the idea of keeping the filenames as they are and using the front matter for ordering.

BennyHallett commented 9 years ago

This issue has now been resolved. It'll be included in the next release (not sure when that will be but it wont be long)