Added whenPublished to page_context.sql and page_context.json