# Check if posts page ?

**URL:** <https://community.hubspot.com/t/check-if-posts-page/57092>\
**Category:** CMS Development\
**Created:** [May 17, 2022, 7:58am UTC](https://community.hubspot.com/t/check-if-posts-page/57092 "2022-05-17T07:58:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prydz](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@Prydz](https://community.hubspot.com/u/Prydz)\
**Post date:** [May 17, 2022, 7:58am UTC](https://community.hubspot.com/t/check-if-posts-page/57092/1 "2022-05-17T07:58:40Z")

</div>

On my blog listing page i have

{% if loop.index \> 1 %}

which hides the first blog post because I also have a featured section which already shows the first blog post. HOWEVER i do not wanna hide it on pages like [xx.com/tag/taggoeshere](http://xx.com/tag/taggoeshere)  
Is that possible ?

---

<div class="post-metadata">

**Author:** ![Prydz](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@Prydz](https://community.hubspot.com/u/Prydz)\
**Post date:** [May 17, 2022, 8:11am UTC](https://community.hubspot.com/t/check-if-posts-page/57092/2 "2022-05-17T08:11:45Z")

</div>

To clarify.  
I have my listing view which shows all blog posts except the first one.  
Then on my TAGS pages, i do wanna show the first one and the rest. How would my if statement check “if tag page then show all”

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [May 17, 2022, 3:39pm UTC](https://community.hubspot.com/t/check-if-posts-page/57092/3 "2022-05-17T15:39:23Z")

</div>

Hi @Prydz,

yes - this is possible.

Here’s a simple example.

```lia-code-sample
{% if is_listing_view %}
{% if loop.index > 1%}
{% for post in posts %}
...
{% endfor %}
{% else %}
{# display something if there are no posts #}
{% endif %} {# end if loop.index #}

{% elif tag %} {# start tag layout #}
{% for post in posts %}
...
{% endfor %}
{% endif %} {# end if listing/tag #}

```

best,

Anton
