hugo/docs/content/en/functions/collections/Last.md
2023-10-20 09:43:56 +02:00

25 lines
468 B
Markdown

---
title: collections.Last
linkTitle: last
description: Slices an array to the last N elements.
categories: [functions]
keywords: []
menu:
docs:
parent: functions
function:
aliases: [last]
returnType: any
signatures: [collections.Last INDEX COLLECTION]
relatedFunctions:
- collections.After
- collections.First
- collections.Last
aliases: [/functions/last]
---
```go-html-template
{{ range last 10 .Pages }}
{{ .Render "summary" }}
{{ end }}
```