diff piecrust/data/provider.py @ 729:e35407c60e00

templating: Make blog archives generator expose more templating data. In addition to pagination data, also expose a non-paginating iterator that lists all posts in a source by chronological order.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 01 Jun 2016 22:09:21 -0700
parents e4dcef2d5640
children 0fdf1e43bf92
line wrap: on
line diff
--- a/piecrust/data/provider.py	Mon May 30 20:45:27 2016 -0700
+++ b/piecrust/data/provider.py	Wed Jun 01 22:09:21 2016 -0700
@@ -248,5 +248,5 @@
         if self._iterator is not None:
             return
 
-        self._iterator = PageIterator(self._source, self._page)
+        self._iterator = PageIterator(self._source, current_page=self._page)