[sync] post updated
This commit is contained in:
1 parent
3217a27bb8
commit
10dd3d6316
7 files changed
+141
-150
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user