Files
hugo/content/en/methods/page/IsSection.md
T
Joe Mooring 69d7a781b4 Replace links to glossary terms with custom render hook syntax
For example: [scalar](/getting-started/glossary/#scalar) => [scalar](g)
2025-01-20 00:26:38 -08:00

649 B

title, description, categories, keywords, action
title description categories keywords action
IsSection Reports whether the given page is a section page.
related returnType signatures
methods/page/IsHome
methods/page/IsNode
methods/page/IsPage
bool
PAGE.IsSection

The IsSection method on a Page object returns true if the page kind is section.

content/
├── books/
│   ├── book-1/
│   │   └── index.md  <-- kind = page
│   ├── book-2.md     <-- kind = page
│   └── _index.md     <-- kind = section
└── _index.md         <-- kind = home
{{ .IsSection }}