diff --git a/.eleventy.js b/.eleventy.js index 18595c8..373adc3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -11,7 +11,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addFilter('prose', proseFilter) eleventyConfig.addFilter( 'readingTime', - (str) => readingTime(str).text + (str) => readingTime(str, { wordsPerMinute: 250 }).text ) eleventyConfig.addFilter('readable', (date) => DateTime.fromJSDate(date).toLocaleString(DateTime.DATE_FULL) diff --git a/utils/github.js b/utils/github.js index e74c816..9849f42 100644 --- a/utils/github.js +++ b/utils/github.js @@ -89,9 +89,7 @@ const getMarkdown = async function ( }) return files.map((file) => { - const { attributes, bodyBegin } = frontMatter(file.content, { - wordsPerMinute: 250, - }) + const { attributes, bodyBegin } = frontMatter(file.content) const content = file.content .split('\n')