hugo/docs/content/en/functions/first.md
2018-09-22 20:58:46 +02:00

555 B

title linktitle description godocref date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated aliases
first first Slices an array to only the first _N_ elements. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
iteration
first LIMIT COLLECTION
lists
taxonomies
terms
groups
after
last
false
{{ range first 10 .Pages }}
    {{ .Render "summary" }}
{{ end }}

Note: Exclusive to first, LIMIT can be '0' to return an empty array.