Merge commit 'b239595af5a9fc1fc9a1ccc666c3ab06ccc32f04'

This commit is contained in:
Bjørn Erik Pedersen
2018-06-11 22:32:19 +02:00
21 changed files with 41 additions and 35 deletions

View File

@@ -20,6 +20,9 @@ toc: false
[Shortcodes][shortcodes] have access to parameters delimited in the shortcode declaration via [`.Get`][getfunction], page- and site-level variables, and also the following shortcode-specific fields:
.Ordinal
: Zero-based ordinal in relation to its parent. If the parent is the page itself, this ordinal will represent the position of this shortcode in the page content.
.Parent
: provides access to the parent shortcode context in nested shortcodes. This can be very useful for inheritance of common shortcode parameters from the root.