mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Add after to template function documentation
This commit is contained in:
1 parent
c335efdd06
commit
40a92a062d
1 file changed
+10
@@ -76,6 +76,16 @@ e.g.
|
|||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
### after
|
||||||
|
Slices an array to only the items after the Xth item. Use this in
|
||||||
|
combination with `first` use both halves of an array split a item
|
||||||
|
X.
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
|
||||||
|
{{ range after 10 .Data.Pages }}
|
||||||
|
{{ .Render "title" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
### getenv
|
### getenv
|
||||||
Returns the value of an environment variable.
|
Returns the value of an environment variable.
|
||||||
|
|||||||
Reference in new issue
Block a user