mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
37f6190c69
commit
e045515b91
2 changed files with 4 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ class Writer(object):
|
|||
context['localsiteurl'] = relative_path
|
||||
localcontext['SITEURL'] = relative_path
|
||||
|
||||
localcontext['output_file'] = name
|
||||
localcontext.update(kwargs)
|
||||
|
||||
# check paginated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue