mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
46 lines
1.3 KiB
Markdown
46 lines
1.3 KiB
Markdown
---
|
|
title: Page collections
|
|
description: A quick reference guide to Hugo's page collections.
|
|
categories: [quick reference]
|
|
keywords: []
|
|
menu:
|
|
docs:
|
|
parent: quick-reference
|
|
weight: 50
|
|
weight: 50
|
|
toc: true
|
|
---
|
|
|
|
## Page
|
|
|
|
Use these `Page` methods when rendering lists on [section] pages, [taxonomy] pages, [term] pages, and the home page.
|
|
|
|
[section]: /getting-started/glossary/#section
|
|
[taxonomy]: /getting-started/glossary/#taxonomy
|
|
[term]: /getting-started/glossary/#term
|
|
|
|
{{< list-pages-in-section path=/methods/page filter=methods_page_page_collections filterType=include omitElementIDs=true titlePrefix=PAGE. >}}
|
|
|
|
## Site
|
|
|
|
Use these `Site` methods when rendering lists on any page.
|
|
|
|
{{< list-pages-in-section path=/methods/site filter=methods_site_page_collections filterType=include omitElementIDs=true titlePrefix=SITE. >}}
|
|
|
|
## Filter
|
|
|
|
Use the [`where`] function to filter page collections.
|
|
|
|
[`where`]: /functions/collections/where
|
|
|
|
## Sort
|
|
|
|
Use these methods to sort page collections.
|
|
|
|
{{< list-pages-in-section path=/methods/pages filter=methods_pages_sort filterType=include titlePrefix=. omitElementIDs=true titlePrefix=PAGES. >}}
|
|
|
|
## Group
|
|
|
|
Use these methods to group page collections.
|
|
|
|
{{< list-pages-in-section path=/methods/pages filter=methods_pages_group filterType=include titlePrefix=. omitElementIDs=true titlePrefix=PAGES. >}}
|