Skip to content

Commit

Permalink
Fix getpelican#1223 PAGINATION_PATTERNS doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogdham committed Jun 6, 2014
1 parent b8db970 commit 3a26ecd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=========
Expand Down

0 comments on commit 3a26ecd

Please sign in to comment.