Debian Codegraph @

docs/content/en/methods/pages/Limit.md

raw
1 ---
2 title: Limit
3 description: Returns the first N pages from the given page collection.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: page.Pages
9 signatures: [PAGES.Limit NUMBER]
10 ---
11
12 ```go-html-template
13 {{ range .Pages.Limit 3 }}
14 <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
15 {{ end }}
16 ```