I think the previous build error was because I was using page.date which is only available for posts