aprescott/serif — pull request #2 by aprescott (2012-11-21 20:41:46+00:00)
Title: Support archive listings pages

There is nothing in place to allow viewing previous posts, short of just listing every single one of them on the index page.

I don't like the idea of pagination here, for various reasons:

* The contents of a page will change over time, which makes them not-very-linkable in the long run.
* Beyond a certain number of pages, you're just going to stop clicking.
* How do you handle URL formats if permalinks are arbitrary? If you're serving up posts at `foo.com/:title`, there's no "clean" way to provide pages.

Instead of pagination, there should be an archive format of `/archive/:year/:month` (fixed to this pattern, at least initially) which will index posts made in the given month. Permalinks will stay as-is, so a post of `/posts/foo` made on Jan 1st 2012 would be listed in `/archive/2012/01` but its permalink would _not_ be `/archive/2012/01/foo`, just `/posts/foo` as dictated by the permalink configuration.

If people want to fake it by setting permalinks to `/archive/:year/:month/:title`, they can do so with this setup.