Previous and next link update

Previous and next buttons were not working because of the new /date/YYYY/M/ URL format.