From b8f84ac5944b53e7cc4475cb1aed1832a4142f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 21 Dec 2018 09:51:15 +0100 Subject: [PATCH] hugolib: Add .Name as a shortcode variable Fixes #5546 --- content/en/variables/shortcodes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/variables/shortcodes.md b/content/en/variables/shortcodes.md index 10b779396..7462deec7 100644 --- a/content/en/variables/shortcodes.md +++ b/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.