added support for prev/next posts