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: | |
f.write(frontmatter.dumps(p)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment