Mercurial > piecrust2
comparison piecrust/sources/blogarchives.py @ 877:d6d35b2efd04
bake: Rename "pass" to "step" and make the page pipeline use different steps.
That pipeline is now first loading all pages, and then rendering full pages
unless they trigger a sub-render.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 22:16:23 -0700 |
parents | d1095774bfcf |
children | 1d0364614665 |
comparison
equal
deleted
inserted
replaced
876:d1095774bfcf | 877:d6d35b2efd04 |
---|---|
143 self.year = None | 143 self.year = None |
144 | 144 |
145 | 145 |
146 class BlogArchivesPipeline(ContentPipeline): | 146 class BlogArchivesPipeline(ContentPipeline): |
147 PIPELINE_NAME = 'blog_archives' | 147 PIPELINE_NAME = 'blog_archives' |
148 PASS_NUM = 1 | 148 PASS_NUM = 10 |
149 RECORD_ENTRY_CLASS = BlogArchivesPipelineRecordEntry | 149 RECORD_ENTRY_CLASS = BlogArchivesPipelineRecordEntry |
150 | 150 |
151 def __init__(self, source, ctx): | 151 def __init__(self, source, ctx): |
152 if not isinstance(source, BlogArchivesSource): | 152 if not isinstance(source, BlogArchivesSource): |
153 raise Exception("The blog archives pipeline only supports blog " | 153 raise Exception("The blog archives pipeline only supports blog " |