formatting title and adding link to the post