From ad26b411f943ee1d773fcfa3894831344ca88d49 Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Mon, 2 Jan 2017 20:20:24 -0800 Subject: [PATCH] slashful pagination patterns Really, the theme itself should use PAGINATION_PATTERNS rather than making me hack the template. (All in all, pelican-simplegrey does not seem technically polished to me.) But we make do with the blog engine we have, and take pride in it not being boring, mainstream WordPress. --- pelicanconf.py | 5 +++++ theme/templates/pagination.inc.html | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index aa5e3f5..1667b97 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -47,6 +47,11 @@ PAGE_SAVE_AS = '{slug}/index.html' AUTHOR_URL = 'author/{slug}/' AUTHOR_SAVE_AS = 'author/{slug}/index.html' +PAGINATION_PATTERNS = ( + (1, '{base_name}/', '{base_name}/index.html'), + (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'), +) + THEME = 'theme' # Uncomment following line if you want document-relative URLs when developing diff --git a/theme/templates/pagination.inc.html b/theme/templates/pagination.inc.html index 64a80b3..5784130 100644 --- a/theme/templates/pagination.inc.html +++ b/theme/templates/pagination.inc.html @@ -2,14 +2,14 @@ {% endif %} -- 2.17.1