Mercurial > piecrust2
diff piecrust/data/builder.py @ 352:498a917cd2d4
pagination: Make pagination use routes to generate proper URLs.
This fixes incorrect URLs when using custom sub-page suffixes, for instance.
Add tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 17 Apr 2015 16:09:30 -0700 |
parents | 422052d2e978 |
children | 4b1019bb2533 |
line wrap: on
line diff
--- a/piecrust/data/builder.py Fri Apr 17 16:08:23 2015 -0700 +++ b/piecrust/data/builder.py Fri Apr 17 16:09:30 2015 -0700 @@ -34,7 +34,7 @@ pc_data = PieCrustData() pgn_source = ctx.pagination_source or get_default_pagination_source(page) - paginator = Paginator(page, pgn_source, first_uri, ctx.page_num, + paginator = Paginator(page, pgn_source, ctx.page_num, ctx.pagination_filter) assetor = Assetor(page, first_uri) linker = PageLinkerData(page.source, page.rel_path)