diff options
Diffstat (limited to 'docs/content/en/methods/page/Section.md')
-rw-r--r-- | docs/content/en/methods/page/Section.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/content/en/methods/page/Section.md b/docs/content/en/methods/page/Section.md index 31cfb1e6f..04c6a8a24 100644 --- a/docs/content/en/methods/page/Section.md +++ b/docs/content/en/methods/page/Section.md @@ -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. |