Skip to content
Permalink
Browse files
Added url_type argument to generic_renderer as well.
  • Loading branch information
felixfontein committed Oct 3, 2016
1 parent da50f07 commit 6e35a77c0ed4fe5cea93faea471d4ddba7ac20e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/nikola.py
@@ -1986,7 +1986,7 @@ def scan_posts(self, really=False, ignore_quit=False, quiet=False):
sys.exit(1)
signal('scanned').send(self)

def generic_renderer(self, lang, output_name, template_name, filters, deps=[], uptodate_deps=[], pre_context=None, post_context=None, context_deps_remove=None, post_deps_dict=None):
def generic_renderer(self, lang, output_name, template_name, filters, deps=[], uptodate_deps=[], pre_context=None, post_context=None, context_deps_remove=None, post_deps_dict=None, url_type=None):
"""Helper function for rendering pages and post lists and other related pages."""
utils.LocaleBorg().set_locale(lang)

@@ -2021,7 +2021,7 @@ def generic_renderer(self, lang, output_name, template_name, filters, deps=[], u
'targets': [output_name],
'file_dep': sorted(deps),
'actions': [(self.render_template, [template_name, output_name,
context])],
context, url_type])],
'clean': True,
'uptodate': [config_changed(deps_dict, 'nikola.nikola.Nikola.generic_renderer')] + uptodate_deps
}

0 comments on commit 6e35a77

Please sign in to comment.