From 10ea7933558159e4e308f19f5a1edcd9f5976e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 27 May 2018 21:35:14 +0200 Subject: [PATCH] Document .Ordinal on shortcode --- 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 b194eb7db..49337bc4b 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: +.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.