resolve/refinerycms-blog — pull request #195 by phiggins (2012-02-10 09:23:48+00:00)
Title: Refactor archive widget

There were two bugs in the blog archive widget I wanted to fix:

* Duplicate archive links. If there were 5 blog posts published in January of 2012, there would be 5 links that looked like "January 2012 (5)".
* Many unnecessary database queries. For each blog post that existed, a count was done against the database when all the posts had already been fetched.

While I was in there changing stuff, I also refactored a few specs and methods of Refinery::Blog::Post.