--- title: Section description: Returns the name of the top level section in which the given page resides. categories: [] keywords: [] action: related: - methods/page/Type returnType: string signatures: [PAGE.Section] --- With this content structure: ```text content/ ├── lessons/ │ ├── math/ │ │ ├── _index.md │ │ ├── lesson-1.md │ │ └── lesson-2.md │ └── _index.md └── _index.md ``` When rendering lesson-1.md: ```go-html-template {{ .Section }} → lessons ``` In the example above "lessons" is the top level section. The `Section` method is often used with the [`where`] function to build a page collection. ```go-html-template {{ range where .Site.RegularPages "Section" "lessons" }}