Mirror of https://github.com/wombelix/read-more - Pelican plugin that inserts an inline "Read More" link into the last HTML element of the summary
Dominik Wombacher d870ff8db0 Fixes and Minor enhancements after migration | 3 gadi atpakaļ | |
---|---|---|
.github | 3 gadi atpakaļ | |
pelican | 3 gadi atpakaļ | |
.editorconfig | 3 gadi atpakaļ | |
.gitignore | 3 gadi atpakaļ | |
.pre-commit-config.yaml | 3 gadi atpakaļ | |
CONTRIBUTING.md | 3 gadi atpakaļ | |
LICENSE | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ | |
pyproject.toml | 3 gadi atpakaļ | |
tasks.py | 3 gadi atpakaļ | |
tox.ini | 3 gadi atpakaļ |
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/
This plugin can be installed via:
python -m pip install pelican-read-more
Following Settings are available, if not set, the Plugin will use default values.
String added to end of Summary before "read more" link:
SUMMARY_END_SUFFIX = '...'
Summary length before "read more" link will be added:
SUMMARY_MAX_LENGTH = 50
Text of "read more" link:
READ_MORE_LINK = '<span>continue</span>'
Format of "read more" link:
READ_MORE_LINK_FORMAT = '<a class="read-more" href="/{url}">{text}</a>'
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 include: Vuong Nguyen, Dashie, Justin Mayer, Kernc
This project is licensed under the AGPL-3.0 license.