mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add new setting 'TEMPLATE_PAGINATION'
This change adds a new setting 'TEMPLATE_PAGINATION', which may be used when you want a specific page to have a different pagination value than the default. For example, you want an index page with 10 articles per page, but category pages should have 3 articles per page.
This commit is contained in:
parent
1fad70e5b9
commit
1d29c9d2f8
5 changed files with 76 additions and 2 deletions
|
|
@ -480,6 +480,12 @@ Setting name (default value) What does it do?
|
|||
`DEFAULT_PAGINATION` (``False``) The maximum number of articles to include on a
|
||||
page, not including orphans. False to disable
|
||||
pagination.
|
||||
|
||||
`TEMPLATE_PAGINATION` (``{}``) A dictionary used to set per-template pagination,
|
||||
used when you wish different templates to have
|
||||
a specific number of articles per page.
|
||||
For example: ``{'index': 10}``
|
||||
|
||||
`PAGINATION_PATTERNS` A set of patterns that are used to determine advanced
|
||||
pagination output.
|
||||
================================================ =====================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue