mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add after
to template function documentation
This commit is contained in:
parent
c335efdd06
commit
40a92a062d
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue