Reading Time
by Animal Design OG


Description

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

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 }}


More Info

Created
3rd Sep 2015
Latest Version(s)
Last Update
  • 28th August 2015 (Development)
Category
Plugin
Tags
License

Changelog & Releases

Loading releases …

Related

Shorturl

animal/shorturl

This plugin provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly. When set up, it redirects i.e. from http://yourhost/s/short to http://yourhost/page/this-is-my-long-slug. It runs before the internal routing and therefor overwrites all other routes.