goodbytes / readtime
A simple twig filter that shows the average read time for a blog post
Package info
github.com/iamgoodbytes/bolt-twig-readtime
Type:bolt-extension
pkg:composer/goodbytes/readtime
Requires
- bolt/bolt: ^3.0
Requires (Dev)
- phpunit/phpunit: ^4.7
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-10 11:57:17 UTC
README
A simple filter to show the estimated reading time for a blog post in bolt. Simply call the readtime filter for content you want to estimate the reading time for.
The filter accepts two arguments, making it easier to use the plugin in different languages. The first argument is the singular word to be used (e.g. 1 minute) while the second argument is the plural word (e.g. 2 minutes) to display the reading time in your language.
{{ record.body | readtime("minute", "minutes") }}