Skip to content

Instantly share code, notes, and snippets.


Bob Monsour bobmonsour

View GitHub Profile
bobmonsour / readingtime.js
Last active Feb 8, 2022
This code can be used as an eleventy filter to create the reading time (in minutes) of a piece of content.
View readingtime.js
* Calculate the reading time, in minutes, of a post
* Assumptions:
* - average reading time is 240 words per minute
* source:, "Most Comprehensive
* Review To Date Finds The Average Person’s Reading
* Speed Is Slower Than Previously Thought"
* Output: