Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a few missing shortcode variables
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 3, 2017
1 parent 94379b9 commit 0ca3747
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/template-variables.rst
Expand Up @@ -417,18 +417,19 @@ For more details about hierarchies, see `Hierarchical lists`_
Variables available in shortcodes
---------------------------------

*The global context is available in shortcodes.*
*The global context is available in templated shortcodes.*

.. class:: table table-bordered table-striped

================== ========== ====================================================
================== ========== ===========================================================================
Name Type Description
================== ========== ====================================================
================== ========== ===========================================================================
``lang`` str Current language
``_args`` list<str> Arguments given to the shortcode
``data`` str Shortcode contents
``post`` Post Post object (if available)
================== ========== ====================================================
``filename`` str? file name, if ``shortcode_function.nikola_shortcode_pass_filename = True``
================== ========== ===========================================================================

Variables available in post lists
---------------------------------
Expand Down

0 comments on commit 0ca3747

Please sign in to comment.