Mercurial > piecrust2
comparison piecrust/sources/blogarchives.py @ 871:504ddb370df8
refactor: Fixing some issues with baking assets.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Jun 2017 22:30:27 -0700 |
parents | d231a10d18f9 |
children | d1095774bfcf |
comparison
equal
deleted
inserted
replaced
870:48d25fd68b8d | 871:504ddb370df8 |
---|---|
186 def run(self, job, ctx, result): | 186 def run(self, job, ctx, result): |
187 page = Page(self.source, job.content_item) | 187 page = Page(self.source, job.content_item) |
188 prev_entry = ctx.previous_entry | 188 prev_entry = ctx.previous_entry |
189 cur_entry = result.record_entry | 189 cur_entry = result.record_entry |
190 cur_entry.year = job.content_item.metadata['route_params']['year'] | 190 cur_entry.year = job.content_item.metadata['route_params']['year'] |
191 self._pagebaker.bake(page, prev_entry, cur_entry, []) | 191 self._pagebaker.bake(page, prev_entry, cur_entry) |
192 | 192 |
193 def postJobRun(self, ctx): | 193 def postJobRun(self, ctx): |
194 # Create bake entries for the years that were *not* dirty. | 194 # Create bake entries for the years that were *not* dirty. |
195 # Otherwise, when checking for deleted pages, we would not find any | 195 # Otherwise, when checking for deleted pages, we would not find any |
196 # outputs and would delete those files. | 196 # outputs and would delete those files. |