middleman/middleman-blog — pull request #41 by bhollis (2012-04-21 07:49:45+00:00)
Title: Port the extension to the new sitemap structure

The new sitemap stuff is really cool - it lets me fix #39 easily because the page list gets rebuilt completely whenever stuff changes.

I'd definitely like comments on the approaches I took here - specifically how I'm using `manipulate_resource_list` and how I made `BlogArticle` into a module that just gets mixed into `Resource`. I was also pretty uncomfortable with what I had to do in `TagPages` and `CalendarPages` to set instance variables in the views using `provides_metadata_for_path`, especially since each time the sitemap is rebuilt a new block is added to that list and they just build up. I'd love to come up with a better way of handling that.

All tests pass assuming middleman/middleman#367 is pulled.