diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-21 09:51:15 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-21 09:51:15 +0100 |
commit | 1021714449a05ef85b2fdfaf65b354cbdee44f23 (patch) | |
tree | c92c11867d9af5a78cade6d7554387accdf789ef /docs/content/en/variables/shortcodes.md | |
parent | 6f069e549b869c976cb6576a64812df5e7b7c809 (diff) |
hugolib: Add .Name as a shortcode variable
Fixes #5546
Diffstat (limited to 'docs/content/en/variables/shortcodes.md')
-rw-r--r-- | docs/content/en/variables/shortcodes.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/en/variables/shortcodes.md b/docs/content/en/variables/shortcodes.md index 10b779396..7462deec7 100644 --- a/docs/content/en/variables/shortcodes.md +++ b/docs/content/en/variables/shortcodes.md @@ -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: +.Name +: Shortcode name. + .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. |