From 2174525cec567eb43968f52c9f28118a21fafec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 27 May 2018 21:34:05 +0200 Subject: [PATCH] hugolib: A little more on shortcode ordinal --- hugolib/shortcode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 937a90956..bbd34e22b 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -41,7 +41,8 @@ type ShortcodeWithPage struct { Parent *ShortcodeWithPage IsNamedParams bool - // Zero-based oridinal in relation to its parent. + // 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. Ordinal int scratch *Scratch