mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 09:52:10 -05:00
18 lines
311 B
Markdown
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 }}
|
|
```
|