Skip to content

Commit

Permalink
Fix UnboundLocalError when building jinja site
Browse files Browse the repository at this point in the history
06b18f6 fixed a bug with messed up
names, but missed out one spot.
  • Loading branch information
punchagan committed Jun 23, 2016
1 parent 826d110 commit 11e7772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/template/jinja.py
Expand Up @@ -97,7 +97,7 @@ def render_template(self, template_name, output_name, context):
makedirs(os.path.dirname(output_name))
with io.open(output_name, 'w', encoding='utf-8') as output:
output.write(data)
return output
return data

def render_template_to_string(self, template, context):
"""Render template to a string using context."""
Expand Down

0 comments on commit 11e7772

Please sign in to comment.