Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -1,15 +1,16 @@
---
title: Section
description: Returns the name of the top level section in which the given page resides.
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]
params:
functions_and_methods:
returnType: string
signatures: [PAGE.Section]
---
{{% glossary-term section %}}
With this content structure:
```text
@@ -29,7 +30,7 @@ When rendering lesson-1.md:
{{ .Section }} → lessons
```
In the example above "lessons" is the top level section.
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.