mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix #1223 PAGINATION_PATTERNS doc example
This commit is contained in:
parent
b8db970455
commit
3a26ecd340
1 changed files with 4 additions and 4 deletions
|
|
@ -548,13 +548,13 @@ second (and subsequent) pages to be ``/page/2/``, you would set
|
|||
``PAGINATION_PATTERNS`` as follows::
|
||||
|
||||
PAGINATION_PATTERNS = (
|
||||
(1, '{base_name}/', '{base_name}/index.html'),
|
||||
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
|
||||
(1, '{name}/', '{name}/index.html'),
|
||||
(2, '{name}/page/{number}/', '{name}/page/{number}/index.html'),
|
||||
)
|
||||
|
||||
This would cause the first page to be written to
|
||||
``{base_name}/index.html``, and subsequent ones would be written into
|
||||
``page/{number}`` directories.
|
||||
``{name}/index.html``, and subsequent ones would be written into
|
||||
``{name}/page/{number}`` directories.
|
||||
|
||||
Tag cloud
|
||||
=========
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue