Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeah568/jekyll-read-time-filter

A Jekyll/Liquid filter to calculate the read time of an article based on the formula used by Medium.
https://github.com/yeah568/jekyll-read-time-filter

jekyll jekyll-plugin medium read-time

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# jekyll-read-time-filter
A Jekyll/Liquid filter to calculate the read time of an article based on the formula [used by Medium](https://medium.com/the-story/read-time-and-you-bc2048ab620c).

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 ``. If you're using this on a post listing page, make sure to markdownify the post content first.