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

@ -54,6 +54,9 @@ All of these settings will be available to all templates.
============= ===================================================
Variable Description
============= ===================================================
output_file The name of the file currently being generated. For
instance, when Pelican is rendering the homepage,
output_file will be "index.html".
articles The list of articles, ordered descending by date
All the elements are `Article` objects, so you can
access their attributes (e.g. title, summary, author