diff --git a/src/index.ts b/src/index.ts index 606a42f..33a64c5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,7 +60,7 @@ const parseNoteFile = async (dirName: string, year: string, file: string): Promi ? attributes.description : "summary" in attributes && typeof attributes.summary === "string" ? attributes.summary - : body.split(title)[1].trim(); + : body.split(title)[1]?.trim(); return { slug: file,