creates links for posts