From: M. Taylor Saotome-Westlake Date: Tue, 3 Jan 2017 04:20:24 +0000 (-0800) Subject: slashful pagination patterns X-Git-Url: http://unremediatedgender.space/source?a=commitdiff_plain;h=ad26b411f943ee1d773fcfa3894831344ca88d49;p=Ultimately_Untrue_Thought.git 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. --- 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 %}