| 1 |
--- |
| 2 |
title: Page collections |
| 3 |
description: A quick reference guide to Hugo's page collections. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
--- |
| 7 |
|
| 8 |
## Page |
| 9 |
|
| 10 |
Use these `Page` methods when rendering lists on [section pages](g), [taxonomy pages](g), [term pages](g), and the home page. |
| 11 |
|
| 12 |
{{% render-list-of-pages-in-section path=/methods/page filter=methods_page_page_collections filterType=include titlePrefix=PAGE. %}} |
| 13 |
|
| 14 |
## Site |
| 15 |
|
| 16 |
Use these `Site` methods when rendering lists on any page. |
| 17 |
|
| 18 |
{{% render-list-of-pages-in-section path=/methods/site filter=methods_site_page_collections filterType=include titlePrefix=SITE. %}} |
| 19 |
|
| 20 |
## Filter |
| 21 |
|
| 22 |
Use the [`where`][] function to filter page collections. |
| 23 |
|
| 24 |
## Sort |
| 25 |
|
| 26 |
{{% glossary-term "default sort order" %}} |
| 27 |
|
| 28 |
Use these methods to sort page collections by different criteria. |
| 29 |
|
| 30 |
{{% render-list-of-pages-in-section path=/methods/pages filter=methods_pages_sort filterType=include titlePrefix=. titlePrefix=PAGES. %}} |
| 31 |
|
| 32 |
## Group |
| 33 |
|
| 34 |
Use these methods to group page collections. |
| 35 |
|
| 36 |
{{% render-list-of-pages-in-section path=/methods/pages filter=methods_pages_group filterType=include titlePrefix=. titlePrefix=PAGES. %}} |
| 37 |
|
| 38 |
[`where`]: /functions/collections/where/ |