Quick-search for anything
⌘F

reading_time

Usage: {{reading_time}}

Description

{{reading_time}} renders the estimated reading time for a post.

The helper counts the words in the post and calculates an average reading time of 275 words per minute. For the first image present, 12s is added, for the second 11s is added, for the third 10, and so on. From the tenth image onwards every image adds 3s.

By default the helper will render a text like this:

  • x min read for estimated reading time longer than one minute
  • 1 min read for estimated reading time shorter than or equal to one minute

You can override the default text.

Example Code

{{#post}}
    {{reading_time}}
{{/post}}

Custom labelling

Singular minute and plural minutes labelling can be customised using the options minute and minutes, using % as the plural minutes value.

Example

{{reading_time minute="Only a minute" minutes="Takes % minutes"}}

See our full tutorial on how to customise and build upon the reading_time Handlebars helper.