Implemented the index and show actions of the post controller with associated views