def METHOD_NAME(self, path, **kw):
    """Create a new post."""
    content = kw.pop("content", None)
    onefile = kw.pop("onefile", False)
    if onefile:
        self.logger.warning(
            "The observable compiler only supports two-file format."
        )
    # is_page is not used by create_post as of now.
    kw.pop("is_page", False)
    metadata = {}
    metadata.update(self.default_metadata)
    metadata.update(kw)
    makedirs(os.path.dirname(path))
    if not content.endswith("\n"):
        content += "\n"
    with io.open(path, "w+", encoding="utf8") as fd:
        fd.write(content)