Readtime plugin for pelican
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.
Metadata
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 | Provenance | |
|---|---|---|---|---|
| pelican-readtime-0.1.2.zip | 6.7 kB | Without provenance | 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 |
Security for pelican-readtime 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.