From 082ab1165efbe5585d5525939a25240dc3baf00f Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 10 Dec 2024 19:42:33 -0500 Subject: [PATCH] Run npm run fix --- package-lock.json | 2 +- src/utils/frontmatter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d514a3d..6ad3bd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10782,4 +10782,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/utils/frontmatter.ts b/src/utils/frontmatter.ts index ae80259..bf33632 100644 --- a/src/utils/frontmatter.ts +++ b/src/utils/frontmatter.ts @@ -8,7 +8,7 @@ export const readingTimeRemarkPlugin: RemarkPlugin = () => { const textOnPage = toString(tree); const readingTime = Math.ceil(getReadingTime(textOnPage).minutes); - if (typeof file?.data?.astro?.frontmatter !== "undefined") { + if (typeof file?.data?.astro?.frontmatter !== 'undefined') { file.data.astro.frontmatter.readingTime = readingTime; } };