added code for blog posts