pelican/pelican
Agathe Porte fd029b2bc9 Introduce SUMMARY_MAX_PARAGRAPHS
Let the users use only the n-first paragraphs of the article as article
summary.

The advantage of this approach is that we avoid the random word count
ellipsis that will cut content in pieces, while not having to copy the
first paragraph of the article into the article's summary metadata.

If both SUMMARY_MAX_PARAGRAPHS and SUMMARY_MAX_LENGTH are set, then
the SUMMARY_MAX_LENGTH option will apply to the number of paragraphs in
SUMMARY_MAX_PARAGRAPHS.
2023-11-18 17:21:16 +01:00
..
plugins Update code base for Python 3.8 and above 2023-11-12 13:53:02 +01:00
tests Introduce SUMMARY_MAX_PARAGRAPHS 2023-11-18 17:21:16 +01:00
themes Fix #3233 -- Simple theme classless semantic HTML 2023-11-11 14:10:08 +01:00
tools Merge pull request #3242 from pauloxnet/issues/2888 2023-11-12 16:04:28 +01:00
__init__.py remove WRITE_SELECTED 2023-11-12 19:43:26 +03:00
__main__.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
cache.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
contents.py Introduce SUMMARY_MAX_PARAGRAPHS 2023-11-18 17:21:16 +01:00
generators.py Provide a plugin_enabled Jinja test for themes 2023-11-01 22:49:15 +03:00
log.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
paginator.py Update code base for Python 3.8 and above 2023-11-12 13:53:02 +01:00
readers.py Update code base for Python 3.8 and above 2023-11-12 13:53:02 +01:00
rstdirectives.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
server.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
settings.py remove WRITE_SELECTED 2023-11-12 19:43:26 +03:00
signals.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
urlwrappers.py Update code base for Python 3.8 and above 2023-11-12 13:53:02 +01:00
utils.py Introduce SUMMARY_MAX_PARAGRAPHS 2023-11-18 17:21:16 +01:00
writers.py remove WRITE_SELECTED 2023-11-12 19:43:26 +03:00