set reading speed from 300 to 200 wpm
This commit is contained in:
parent
3b524b9e0d
commit
7a4a132aff
@ -24,7 +24,7 @@ module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addFilter('readTime', (value) => {
|
||||
const content = value
|
||||
const textOnly = content.split(" ") // content.replace(/(<([^>]+)>)/gi, '')
|
||||
const readingSpeedPerMin = 300
|
||||
const readingSpeedPerMin = 200
|
||||
return Math.max(1, Math.floor(textOnly.length / readingSpeedPerMin))
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user