add json and xml endpoints to posts/title-slug route