perf: don't yaml-parse empty string and get nothing back
*surprise*
This commit is contained in:
parent
8682014259
commit
9bd6c95b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -423,7 +423,7 @@ def get_frontmatter(string):
|
|||
body = result.group(2)
|
||||
|
||||
return {
|
||||
"attributes": yaml.safe_load(frontmatter),
|
||||
"attributes": yaml.safe_load(frontmatter) if frontmatter else "",
|
||||
"body": body,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue