Skip to content

Commit

Permalink
🚀 Deploy new version [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pabio-escobar committed Nov 22, 2022
1 parent ca40c9d commit 7f6e50b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const parseNoteFile = async (dirName, year, file) => {
? attributes.description
: "summary" in attributes && typeof attributes.summary === "string"
? attributes.summary
: body.substring(body.indexOf(title))?.trim();
: body.indexOf(title) > -1
? body.substring(body.indexOf(title) + title.length)?.trim() ?? body.trim()
: body.trim();
return {
slug: file,
path,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 7f6e50b

Please sign in to comment.