Compute how long the article will take to read for an average speed.
Add the following snippet to your template to display the time it takes to read the post.
{% if post.meta.read_time %}
{{ post.meta.read_time}} min read
{% endif %}- 29/12/19 Refactored for new plugin system and python 3.
- 12/27/16 Initial version.
Author: Elie Bursztein
Computation used Medium formula:
Read time is based on the average reading speed of an adult (roughly 275 WPM). We take the total word count of a post and translate it into minutes. Then, we add 12 seconds for each inline image.
Additional notes: Our original read time calculation was geared toward “slow” images, like comics, where you would really want to sit down and invest in the image. This resulted in articles with crazy big read times. For instance, this article containing 140 images was clocking in at a whopping 87 minute read. So we amended our read time calculation to count 12 seconds for the first image, 11 for the second, and minus an additional second for each subsequent image. Any images after the tenth image are counted at three seconds.