goodbytes / readtime
A simple twig filter that shows the average read time for a blog post
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:bolt-extension
Requires
- bolt/bolt: ^3.0
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is not auto-updated.
Last update: 2025-05-08 05:19:40 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") }}