Implement publishing for Pages and Blog Posts.