Based on [pyramid_blogr](http://pyramid-blogr.readthedocs.org/en/latest/) by Marcin Lulek