refactor blog posts