getpelican/pelican — pull request #1401 by arty-name (2014-07-13 15:54:10+00:00)
Title: Reversed order of pages, persist articles on a page

I want the page numbers to go in the different direction, so that page 1 would always contain the same set of articles: the oldest ones. I have that in my current weblog in Django: https://blog.arty.name/

Currently Pelican only provides one option for ordering articles: NEWEST_FIRST_ARCHIVES and it only applies to archives page. Neither do I see a way to achieve the desired result via plugin, as paginators do not seem to fire any events.

So I want to to add a new option called PAGINATION_FIXED which defaults to False. When it is set to true, the code in Paginator#page() would work differently and provide desired set of pages.

I would also need to extend PAGINATION_PATTERNS handling a little: currently it only allows special handling of first page only, while I need a special handling for all last pages. Basically it would apply to the last page a pattern having float('inf') as min_number.