summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/page/IsHome.md
blob: 66d8180b06769bbd706e59da2daa58471555b2cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: IsHome
description: Reports whether the given page is the home page.
categories: []
keywords: []
params:
  functions_and_methods:
    returnType: bool
    signatures: [PAGE.IsHome]
---

The `IsHome` method on a `Page` object returns `true` if the [page kind](g) is `home`.

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

```go-html-template
{{ .IsHome }}
```