⏱️ 2 min read

Reading Time Plugin

The Reading Time Plugin estimates the reading time based on word count.

How it works

The plugin counts words in the raw content. If the count exceeds the threshold, it calculates the estimated time using the wpm (words per minute) setting.

Variables (Template)

Configuration

Add to your fluid.cfg:

[plugins]
enabled=..., reading_time

[reading_time]
# Minimum words required to show reading time
threshold=200
# Reading speed (words per minute)
wpm=200

Example Usage

[ if show_reading_time ]
<span class="badge soft">⏱️ { reading_time }</span>
[ endif ]

Note: In the examples above, [] is used instead of the usual double-curly braces to avoid parsing issues in some environments.