Refactor #rel_next_prev_link_tags method

closes #501