Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import frontmatter
from frontmatter import Post as FMPost
def frontmatter_to_file(file, data={}, content=""):
p = FMPost(content=content, **data)
with open(file, "w") as f:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment