Add support for prev and next link in a layout file