diff options
| author | 2013-05-30 17:41:32 -0300 | |
|---|---|---|
| committer | 2013-05-30 17:41:32 -0300 | |
| commit | 47320d60c110fe6058937f996da750caf669d7ed (patch) | |
| tree | 73288c7b833daa42ac200025ed41c940cc8a76f9 /nikola/plugins/task_render_listings.py | |
| parent | 432fee57865e02af455e877a9597ef730397146c (diff) | |
| parent | f794eee787e9cde54e6b8f53e45d69c9ddc9936a (diff) | |
Merge tag 'upstream/5.4.4'
Upstream version 5.4.4
Diffstat (limited to 'nikola/plugins/task_render_listings.py')
| -rw-r--r-- | nikola/plugins/task_render_listings.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nikola/plugins/task_render_listings.py b/nikola/plugins/task_render_listings.py index b115a2f..0cadfd3 100644 --- a/nikola/plugins/task_render_listings.py +++ b/nikola/plugins/task_render_listings.py @@ -78,7 +78,7 @@ class Listings(Task): 'files': files, 'description': title, } - self.site.render_template('listing.tmpl', out_name.encode('utf8'), + self.site.render_template('listing.tmpl', out_name, context) flag = True template_deps = self.site.template_system.template_deps('listing.tmpl') @@ -91,14 +91,15 @@ class Listings(Task): ) yield { 'basename': self.name, - 'name': out_name.encode('utf8'), + 'name': out_name, 'file_dep': template_deps, 'targets': [out_name], 'actions': [(render_listing, [None, out_name, dirs, files])], # This is necessary to reflect changes in blog title, # sidebar links, etc. 'uptodate': [utils.config_changed( - self.site.config['GLOBAL_CONTEXT'])] + self.site.config['GLOBAL_CONTEXT'])], + 'clean': True, } for f in files: ext = os.path.splitext(f)[-1] @@ -111,14 +112,15 @@ class Listings(Task): f) + '.html' yield { 'basename': self.name, - 'name': out_name.encode('utf8'), + 'name': out_name, 'file_dep': template_deps + [in_name], 'targets': [out_name], 'actions': [(render_listing, [in_name, out_name])], # This is necessary to reflect changes in blog title, # sidebar links, etc. 'uptodate': [utils.config_changed( - self.site.config['GLOBAL_CONTEXT'])] + self.site.config['GLOBAL_CONTEXT'])], + 'clean': True, } if flag: yield { |
