add pagination links to post