Skip to content

Commit 57efa5c

Browse files
authored
fix: title option in headmatter not working (#1664)
1 parent 9d10872 commit 57efa5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/parser/src/fs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function load(userRoot: string, filepath: string, content?: string,
9898

9999
const headmatter = { ...entry.slides[0]?.frontmatter }
100100
if (slides[0]?.title)
101-
headmatter.title = slides[0].title
101+
headmatter.title ??= slides[0].title
102102

103103
return {
104104
slides,

0 commit comments

Comments
 (0)