# Check for .isPost?

**URL:** <https://discourse.gohugo.io/t/check-for-ispost/4338>\
**Category:** support\
**Created:** [October 18, 2016, 1:22am UTC](https://discourse.gohugo.io/t/check-for-ispost/4338 "2016-10-18T01:22:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [October 18, 2016, 1:59am UTC](https://discourse.gohugo.io/t/check-for-ispost/4338/2 "2016-10-18T01:59:24Z")

</div>

Depends on what you mean by “post.” Are you talking about any individual page? Then you’d probably want `{{.IsPage}}`.

Otherwise, if you keep your posts in a directory (ie, `contente/posts`), this will work:

```auto
{{if eq .Section "posts"}}
YOUR STUFF HERE
{{end}}

```

You can also range through them…

```auto
{{range where .Site.Pages "Section" "==" "posts"}}
{{end}}

```

---

_[View the full topic](https://discourse.gohugo.io/t/check-for-ispost/4338)._
