Debian Codegraph @

docs/content/en/methods/site/Pages.md

raw
1 ---
2 title: Pages
3 description: Returns a collection of all pages.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: page.Pages
9 signatures: [SITE.Pages]
10 ---
11
12 This method returns all page [kinds](g) in the current language, in the [default sort order](g). That includes the home page, section pages, taxonomy pages, term pages, and regular pages.
13
14 In most cases you should use the [`RegularPages`] method instead.
15
16 [`RegularPages`]: /methods/site/regularpages/
17
18 ```go-html-template
19 {{ range .Site.Pages }}
20 <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
21 {{ end }}
22 ```