previous, next, current month calculations moved to page class as it isn't a per post thing and was giving incorrect results