# Blog post variable

**URL:** <https://community.hubspot.com/t/blog-post-variable/2906>\
**Category:** CMS Development\
**Created:** [August 1, 2017, 3:34pm UTC](https://community.hubspot.com/t/blog-post-variable/2906 "2017-08-01T15:34:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matttunney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matttunney/32/18373_2.png) [@matttunney](https://community.hubspot.com/u/matttunney)\
**Post date:** [August 1, 2017, 3:34pm UTC](https://community.hubspot.com/t/blog-post-variable/2906/1 "2017-08-01T15:34:44Z")

</div>

Is there a variable I can check to distinguish if the current is for a blog post of blog listing?

Perhaps something like this:

`{% if content.post_body == 'True' %}{{ html }}{% endif %}`

---

<div class="post-metadata">

**Author:** ![matttunney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matttunney/32/18373_2.png) [@matttunney](https://community.hubspot.com/u/matttunney)\
**Post date:** [August 1, 2017, 3:40pm UTC](https://community.hubspot.com/t/blog-post-variable/2906/2 "2017-08-01T15:40:37Z")

</div>

`{% if content.post_body %}{{ html }}{% endif %}`

No need for ==‘True’
