Read More: A Plugin for Pelican
This Pelican plugin inserts an inline “Read More” link into the last HTML element of the summary.
For more information regarding why it was created, please visit: https://www.vuongnguyen.com/read-more-python-lxml/
Installation
This plugin can be installed via:
python -m pip install pelican-read-more
Settings
The following settings are available. If not set, the plugin will use default values.
The following setting defines the string that is added to the end of the summary, before the “Read More” link:
SUMMARY_END_SUFFIX = "..."
The following setting defines the summary length before truncating and adding the “Read More” link:
SUMMARY_MAX_LENGTH = 50
The following setting defines the “Read More” link text:
READ_MORE_LINK = '<span>continue</span>'
The following setting defines the format of the “Read More” link:
READ_MORE_LINK_FORMAT = '<a class="read-more" href="/{url}">{text}</a>'
Contributing
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.
To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.
Contributors
Contributors include: Vuong Nguyen, Dashie, Justin Mayer, Kernc
License
This project is licensed under the AGPL 3.0 license.
Metadata
Release files for pelican-read-more 1.0.0
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 | Actions |
|---|---|---|---|---|
| pelican-read-more-1.0.0.tar.gz | 4.3 kB | Without provenance | Details for pelican-read-more-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pelican_read_more-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pelican_read_more-1.0.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / pelican-read-more-1.0.0.tar.gz
| Download URL | pelican-read-more-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4901f2fc55e2e37f3a26dc382af5ed912fb5ce37718436d55a038ab9083336c4
|
|
BLAKE2b-256 checksum How to use checksums |
3312992627264c821d820fc9a236180f330ff85a3e33bd12c4b23b9739597ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.8 Darwin/18.7.0
|
Release files / pelican_read_more-1.0.0-py3-none-any.whl
| Download URL | pelican_read_more-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07fd821cbee659089101e147994f4544c77a5c9307478ab837a0712c67af3fbe
|
|
BLAKE2b-256 checksum How to use checksums |
69bbebdae11d990e2b76b56cd9de78562a70c9eb3f0b0a6541ca8fa6b074d1a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.8 Darwin/18.7.0
|
Security for pelican-read-more 1.0.0
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.