Run npm run fix
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@@ -10782,4 +10782,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@ export const readingTimeRemarkPlugin: RemarkPlugin = () => {
|
|||||||
const textOnPage = toString(tree);
|
const textOnPage = toString(tree);
|
||||||
const readingTime = Math.ceil(getReadingTime(textOnPage).minutes);
|
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;
|
file.data.astro.frontmatter.readingTime = readingTime;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user