--- title: Sections description: Returns a collection of section pages, one for each immediate descendant section of the given page. categories: [] keywords: [] action: related: - methods/page/Ancestors - methods/page/CurrentSection - methods/page/FirstSection - methods/page/InSection - methods/page/IsAncestor - methods/page/IsDescendant - methods/page/Parent returnType: page.Pages signatures: [PAGE.Sections] --- {{% include "methods/page/_common/definition-of-section.md" %}} With this content structure: ```text content/ ├── auctions/ │ ├── 2023-11/ │ │ ├── _index.md <-- front matter: weight = 202311 │ │ ├── auction-1.md │ │ └── auction-2.md │ ├── 2023-12/ │ │ ├── _index.md <-- front matter: weight = 202312 │ │ ├── auction-3.md │ │ └── auction-4.md │ ├── _index.md <-- front matter: weight = 30 │ ├── bidding.md │ └── payment.md ├── books/ │ ├── _index.md <-- front matter: weight = 10 │ ├── book-1.md │ └── book-2.md ├── films/ │ ├── _index.md <-- front matter: weight = 20 │ ├── film-1.md │ └── film-2.md └── _index.md ``` And this template: ```go-html-template {{ range .Sections.ByWeight }}

{{ .LinkTitle }}

{{ end }} ``` On the home page, Hugo renders: ```html

Films

Books

Auctions

``` On the auctions page, Hugo renders: ```html

Auctions in November 2023

Auctions in December 2023

```