summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-27 21:34:05 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-28 10:29:48 +0200
commit2174525cec567eb43968f52c9f28118a21fafec2 (patch)
treea0e0963825de5a7cd5b92ff747c8661cdc3f9081 /hugolib/shortcode.go
parent7a6192647a4b383cd539df2063388ea380371de6 (diff)
hugolib: A little more on shortcode ordinal
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r--hugolib/shortcode.go3
1 files changed, 2 insertions, 1 deletions
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