middleman/middleman-blog — pull request #60 by rumpuslabs (2012-07-18 06:51:11+00:00)
Title: Per-article subdirectories

The first patch allows the article date to be specified in any order in the filename or even omitted entirely. Parts of the code suggested that this should be allowed but it wasn't completely implemented.

The second patch allows that if files are placed in a subdirectory named like `blog.sources` without the file extension, then those files will be relocated to a corresponding subdirectory according to `blog.permalink`, to allow blog articles to have a subdirectory for files just related to that article.

If `directory_indexes` is enabled, this means the blog article will end up in "article_dir/index.html" and the other files will end up in "article_dir/other.ext" and so the blog article will be able to refer to its local files using relative paths (provided `trailing_slash` is on, a problem I have not yet found a solution to. :) )