added the loop to display the list of blog posts