How to Check for Home Page?

To add to this, the above corresponds to:

{{ if eq .Kind "home" }}

In Hugo >= 0.18.

Which is more flexible as you can say:

{{ if eq .Kind "section" }}
{{ if eq .Kind "taxonomy" }}

Etc.

8 Likes