Updated the page file to directly fetch the post contents