Skip to main content

Plugin for Pelican that computes read time based on Medium’s readtime “algorithm”. It adds a readtime and readtime_minutes attributes to articles, with the time estimation 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 readtime variable to show read time estimation on your templates.

{% if article.readtime %} <div>{{ article.readtime }} read</div> {% endif %}

It will generate the following:

<div>X Minutes and Y Seconds read</div>

Alternatively, you can use the readtime_minutes variable to get the number of minutes instead of the fully formatted text.

Release files for pelican-readtime 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelican-readtime 0.1.2
File Size Uploaded
pelican-readtime-0.1.2.zip 6.7 kB Details

Release files / pelican-readtime-0.1.2.zip

Download URL pelican-readtime-0.1.2.zip
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c63a7481087d2dc60946491a1f0babd277b916c30f0888fb7a9afa7123e17675
BLAKE2b-256 checksum
How to use checksums
3c3b9d1e905a8a9044c80003e91757319dcfd46610e4e6633b6b88ba115bce97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page