add "output_file" Jinja context variable

"output_file" contains the name of the HTML file that pelican is
currently rendering.
This commit is contained in:
William Light 2013-01-11 01:01:31 +01:00 committed by Alexis Métaireau
commit e045515b91
2 changed files with 4 additions and 0 deletions

View file

@ -129,6 +129,7 @@ class Writer(object):
context['localsiteurl'] = relative_path
localcontext['SITEURL'] = relative_path
localcontext['output_file'] = name
localcontext.update(kwargs)
# check paginated