hugolib: A little more on shortcode ordinal
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 27 May 2018 19:34:05 +0000 (21:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 28 May 2018 08:29:48 +0000 (10:29 +0200)
hugolib/shortcode.go

index 937a90956e3444b53a8bd402d6af303b4672ae9d..bbd34e22babf6cbdc49dd45198a7703118392f55 100644 (file)
@@ -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