[sync] post updated

This commit is contained in:
tmshv committed 2016-09-14 02:11:37 +03:00
1 parent 3217a27bb8
commit 10dd3d6316
7 files changed
+141 -150

No files matched your search

+3 -3
View File
@@ -27,9 +27,9 @@ def read_md(file):
return markdown(data)
def read_yaml_md(file):
yaml, content = parse_yaml_front_matter(read_file(file))
return yaml, markdown(content)
def read_yaml_md(data):
yaml_front_matter, content = parse_yaml_front_matter(data)
return yaml_front_matter, markdown(content)
# data = frontmatter.load(file)
# return data.metadata, markdown(data.content)