Skip to content

Commit

Permalink
Run npm run fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Dec 11, 2024
1 parent 8544668 commit 082ab11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 082ab11

Please sign in to comment.