fix template next and previous page links to match docjson spec