Create new index variable
Add index to directive scope
Change id variable to post
Add index to html