cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

Optional :date key can be provided in metadata #33

Closed niamu closed 9 years ago

niamu commented 9 years ago

Following the discussion from cryogen/#73, this change allows posts to override the date from the filename by setting :date in the post metadata.

I think this change starts to open up the possibility of having different naming conventions for posts and ultimately support a more flexible and user-defined URL structure.

The :date must be in the same format as defined in config.edn. I investigated adding support for #inst date types but then thought that maybe it should be kept in the same format for now so it is easy for a person to read and edit.