Added checking for no posts and removed post.html