Allow to cap the pagination

This way one could only generate one page of content by using MAX_PAGINATION = 1
This commit is contained in:
Martin Trigaux 2023-07-01 10:29:22 +02:00
commit 6fc577e505
4 changed files with 26 additions and 0 deletions

View file

@ -1038,6 +1038,11 @@ You can use the following settings to configure the pagination.
The maximum number of articles to include on a page, not including orphans.
False to disable pagination.
.. data:: MAX_PAGINATION = False
The maximum number of pages generated. ``False`` to paginate all available
pages.
.. data:: PAGINATED_TEMPLATES = {'index': None, 'tag': None, 'category': None, 'author': None}
The templates to use pagination with, and the number of articles to include