Debian Codegraph @

docs/content/en/methods/page/IsBranch.md

raw
1 ---
2 title: IsBranch
3 description: Reports whether the given page is a branch.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: bool
9 signatures: [PAGE.IsBranch]
10 ---
11
12 {{< new-in 0.163.0 />}}
13
14 {{% glossary-term branch %}}
15
16 ```tree
17 content/
18 ├── books/
19 │ ├── book-1/
20 │ │ └── index.md <-- kind = page IsBranch = false
21 │ ├── book-2.md <-- kind = page IsBranch = false
22 │ └── _index.md <-- kind = section IsBranch = true
23 ├── tags
24 │ ├── fiction
25 │ │ └── _index.md <-- kind = term IsBranch = true
26 │ └── _index.md <-- kind = taxonomy IsBranch = true
27 └── _index.md <-- kind = home IsBranch = true
28 ```
29
30 ```go-html-template
31 {{ .IsBranch }}
32 ```