IsBranch
Reports whether the given page is a branch.
- Syntax
- PAGE.IsBranch
- Returns
- bool
A branch is a node with a page kind of home, section, taxonomy, or term. A branch may have descendants.
content/
├── books/
│ ├── book-1/
│ │ └── index.md <-- kind = page IsBranch = false
│ ├── book-2.md <-- kind = page IsBranch = false
│ └── _index.md <-- kind = section IsBranch = true
├── tags
│ ├── fiction
│ │ └── _index.md <-- kind = term IsBranch = true
│ └── _index.md <-- kind = taxonomy IsBranch = true
└── _index.md <-- kind = home IsBranch = true{{ .IsBranch }}Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page