Pelican plugin for adding read time minutes.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
__init__.py
readtime.py

README.md

readtime - Plugin For Pelican

This plugin adds a variable to the context of Pelican with an stimation of minutes for reading the article.

Usage

To use it you have to add the plugin name to the pelicanconf.py file.

PLUGINS=[ ... , 'readtime']

Then you can access the minutes variable to show on your article.html template.

{% if article.readtime %}
<div><b>Read in {{article.readtime.minutes}} min.</b></div>
{% endif %}