# How to Check for Home Page?

**URL:** <https://discourse.gohugo.io/t/how-to-check-for-home-page/149>\
**Category:** support\
**Created:** [September 30, 2014, 2:25pm UTC](https://discourse.gohugo.io/t/how-to-check-for-home-page/149 "2014-09-30T14:25:06Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 13, 2017, 9:47am UTC](https://discourse.gohugo.io/t/how-to-check-for-home-page/149/25 "2017-05-13T09:47:54Z")

</div>

> [@RickCogley](#):
>
> {{ if .IsHome }}

To add to this, the above corresponds to:

```auto
{{ if eq .Kind "home" }}

```

In Hugo \>= 0.18.

Which is more flexible as you can say:

```auto
{{ if eq .Kind "section" }}

```

```auto
{{ if eq .Kind "taxonomy" }}

```

Etc.

---

_[View the full topic](https://discourse.gohugo.io/t/how-to-check-for-home-page/149)._
