From 7a4a132aff8b78d8f44eac80ab47276583a9fd78 Mon Sep 17 00:00:00 2001 From: eggy Date: Fri, 16 Apr 2021 22:39:21 -0400 Subject: [PATCH] set reading speed from 300 to 200 wpm --- .eleventy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 680d75d..3a83f4d 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -23,8 +23,8 @@ module.exports = function(eleventyConfig) { // To create a filter to determine duration of post eleventyConfig.addFilter('readTime', (value) => { const content = value - const textOnly = content.split(" ")//content.replace(/(<([^>]+)>)/gi, '') - const readingSpeedPerMin = 300 + const textOnly = content.split(" ") // content.replace(/(<([^>]+)>)/gi, '') + const readingSpeedPerMin = 200 return Math.max(1, Math.floor(textOnly.length / readingSpeedPerMin)) })