Skip to content

Commit

Permalink
Add _link to post lists
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 20, 2017
1 parent 3cd75e2 commit a54a3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/template-variables.rst
Expand Up @@ -434,6 +434,7 @@ Name Type Description
``date_format`` str The date format for current language
``post_list_id`` str GUID of post list
``messages`` dict The messages dictionary
``_link`` function ``Nikola.link`` function
================== ========== =====================================

.. vim: nowrap textwidth=0
1 change: 1 addition & 0 deletions nikola/plugins/compile/rest/post_list.py
Expand Up @@ -313,6 +313,7 @@ def _do_post_list(start=None, stop=None, reverse=False, tags=None, require_all_t
'date_format': site.GLOBAL_CONTEXT.get('date_format')[lang],
'post_list_id': post_list_id,
'messages': site.MESSAGES,
'_link': site.link,
}
output = site.template_system.render_template(
template, None, template_data)
Expand Down

0 comments on commit a54a3e1

Please sign in to comment.