From 0c4dfdec5b55b6064dccc38bbfb0a7c0699c895a Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Thu, 30 May 2013 17:41:06 -0300 Subject: Imported Upstream version 5.4.4 --- nikola/plugins/task_render_listings.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'nikola/plugins/task_render_listings.py') 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 { -- cgit v1.2.3