Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reading Time plugin for Bolt CMS

This plugin provides a simple twig function, that calculates the estimated reading time for a given content.

Setup

Add the readingtime function somewhere to your template:

{{ readingtime(record.body) }} Min.

Will print something like 14 Min..

Or store the readingtiime-object in a variable and access more data:

{% set readingtime = readingtime(record.body) %}
{{ readingtime.wordcount }}
{{ readingtime.wordsPerMinute }}
{{ readingtime.wordsPerSecond }}
{{ readingtime.readingTimeMinutes }}
{{ readingtime.readingTimeSeconds }}

Configuration

  • wordsPerMinute (default: 270): Average read words per minute
  • round (default: true, possible: true, 'up', 'down'): Define the used method to round the minutes

About

„We build it“ — ANIMAL

About

Calculates the estimated reading time for a given content.

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages