Skip to content

A Jekyll/Liquid filter to calculate the read time of an article based on the formula used by Medium.

License

Notifications You must be signed in to change notification settings

yeah568/jekyll-read-time-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

jekyll-read-time-filter

A Jekyll/Liquid filter to calculate the read time of an article based on the formula used by Medium.

TL;DR: 275 WPM, add 12 seconds for first image, 11 for next, etc., down to a minimum of 3 seconds per image

Installation

Just drop read_time.rb into your _plugins folder. Simple as that!

Usage

{{ page.content | read_time }}

Note: this plugin requires img tags to be in the form of <img ... />. If you're using this on a post listing page, make sure to markdownify the post content first.

About

A Jekyll/Liquid filter to calculate the read time of an article based on the formula used by Medium.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages