Added handling of post information within index.html.erb