shithub: hugo

Download patch

ref: beacfcf865ed8c38e8f17f4b5cb158a315d42174
parent: da08fad5f3a79ffd577dbc0514cc3e366f883f9b
author: bep <[email protected]>
date: Wed Apr 29 18:40:31 EDT 2015

doc: move the index func reference to where it's used

--- a/docs/content/templates/go-templates.md
+++ b/docs/content/templates/go-templates.md
@@ -144,10 +144,6 @@
         {{ $element }}
     {{ end }}
 
-The `index` function is a [Go][] built-in, and you can read about it [here][gostdlibpkgtexttemplate]. `index`:
-
-> ...returns the result of indexing its first argument by the following arguments. Thus "index x 1 2 3" is, in Go syntax, `x[1][2][3]`. Each indexed item must be a map, slice, or array.
-
 ### Conditionals
 
 `if`, `else`, `with`, `or` & `and` provide the framework for handling conditional
@@ -223,6 +219,10 @@
     {{ index .Params "disqus_url" | html }}
 
 Access the page parameter called "disqus_url" and escape the HTML.
+
+The `index` function is a [Go][] built-in, and you can read about it [here][gostdlibpkgtexttemplate]. `index`:
+
+> ...returns the result of indexing its first argument by the following arguments. Thus "index x 1 2 3" is, in Go syntax, `x[1][2][3]`. Each indexed item must be a map, slice, or array.
 
 **Example 3:**