From: Bjørn Erik Pedersen Date: Sun, 27 May 2018 19:34:05 +0000 (+0200) Subject: hugolib: A little more on shortcode ordinal X-Git-Tag: v0.42~27 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2174525cec567eb43968f52c9f28118a21fafec2;p=brevno-suite%2Fhugo hugolib: A little more on shortcode ordinal --- diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 937a9095..bbd34e22 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