uses template to display blog posts