mojombo/jekyll — pull request #928 by danieldriver (2013-04-06 12:47:38+00:00)
Title: add ordinal date permalink style (/YYYY/DDD/slug.html)

Following up on issue #926 I propose to add an ordinal date option for permalink styles. In addition to `date` and `pretty` it provides the style `ordinal`, as well as the template variable `y_day`.

Thus, in the config file, `permalink: ordinal` => `/:categories/:year/:y_day/:title.html`.

This is a standard way of counting time in astronomy, so it would be ideal for star gazers. (Witness the ordinal/Julian [date converter at NASA](http://www-air.larc.nasa.gov/tools/jday.htm).) Some public transit systems also issue tickets stamped with the three digit day stamp, so it might appeal to a blog about commuting.

My own use case is for an academic journal that uses the ordinal date with article DOIs (digital object identifiers). We would like to map our URL structure to the DOI stamps on articles.

Thanks, btw, to @parkr and @zachgersh for help moving this forward. As with #890 it would be wonderful to see included in the 1.0 milestone!