Added jinja for loop to place posts on the web page.