Skip to content

Commit

Permalink
Add pagination support
Browse files Browse the repository at this point in the history
Signed-off-by: Nabarun Pal <[email protected]>
  • Loading branch information
palnabarun committed Aug 6, 2020
1 parent ef6811c commit ee3859e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
# SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)

# DEFAULT_PAGINATION = 5
# PAGINATION_PATTERNS = (
# (1, '{base_name}/', '{base_name}/index.html'),
# (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
# )

# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True

STATIC_PATHS = ["images", "_redirects"]
USE_SHORTCUT_ICONS = True
EXTRA_PATH_METADATA = {"images/favicon.png": {"path": "favicon.png"}}

DEFAULT_PAGINATION = 10
PAGINATION_PATTERNS = (
(1, '{url}', '{save_as}'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)

0 comments on commit ee3859e

Please sign in to comment.