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