Skip to content
Permalink
Browse files
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 0ca37477b0abec34a3ec7315451c933e1fa4b34f
Showing 1 changed file with 5 additions and 4 deletions.
@@ -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
---------------------------------

0 comments on commit 0ca3747

Please sign in to comment.