mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 07:56:45 -04:00
Add after
to template function documentation
This commit is contained in:
parent
dfddc8bfbf
commit
2b0b4760ca
@ -76,6 +76,16 @@ e.g.
|
||||
{{ .Render "summary" }}
|
||||
{{ 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
|
||||
Returns the value of an environment variable.
|
||||
|
Loading…
x
Reference in New Issue
Block a user