hugo/docs/content/en/functions/last.md
2023-05-22 16:47:07 +02:00

18 lines
311 B
Markdown

---
title: last
description: "slices an array to only the last <em>N</em>th elements."
keywords: []
categories: [functions]
menu:
docs:
parent: functions
toc:
signature: ["last INDEX COLLECTION"]
relatedfuncs: []
---
```go-html-template
{{ range last 10 .Pages }}
{{ .Render "summary" }}
{{ end }}
```