RegularPages
Returns a collection of all regular pages.
- Syntax
- SITE.RegularPages
- Returns
- page.Pages
The RegularPages method on a Site object returns a collection of all regular pages, in the default sort order.
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}The default sort order for page collections, used when no other criteria are set, follows this priority:
weight(ascending)date(descending)linkTitlefalling back totitle(ascending)- Path relative to the
contentdirectory, including the file extension and any language identifier, converted to lower case with spaces replaced by hyphens (ascending)
To change the sort order, use any of the Pages sorting methods. For example:
{{ range site.RegularPages.ByTitle }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ end }}Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page