hugolib: Add .Name as a shortcode variable

Fixes #5546
This commit is contained in:
Bjørn Erik Pedersen
2018-12-21 09:51:15 +01:00
parent 6f069e549b
commit 1021714449
3 changed files with 8 additions and 2 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:
.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.