Add function to display blogposts.