1
0
Fork 0
forked from github/pelican

Merge pull request #2384 from oulenz/pagination_per_template

Control pagination per template
This commit is contained in:
Justin Mayer 2018-09-15 08:57:31 +02:00 committed by GitHub
commit 9e526a825e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 84 additions and 41 deletions

View file

@ -755,10 +755,6 @@ Template pages
``DIRECT_TEMPLATES`` are searched for over paths maintained in
``THEME_TEMPLATES_OVERRIDES``.
.. data:: PAGINATED_DIRECT_TEMPLATES = ['index']
Provides the direct templates that should be paginated.
Metadata
========
@ -1000,6 +996,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:: PAGINATED_TEMPLATES = {'index': None, 'tag': None, 'category': None, 'author': None}
The templates to use pagination with, and the number of articles to include
on a page. If this value is ``None``, it defaults to ``DEFAULT_PAGINATION``.
.. data:: PAGINATION_PATTERNS
A set of patterns that are used to determine advanced pagination output.