# Getting latest post for different style

**URL:** <https://zola.discourse.group/t/getting-latest-post-for-different-style/445>\
**Category:** Uncategorized\
**Created:** [June 3, 2020, 12:03pm UTC](https://zola.discourse.group/t/getting-latest-post-for-different-style/445 "2020-06-03T12:03:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rizary](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/rizary/32/211_2.png) [@Rizary](https://zola.discourse.group/u/Rizary)\
**Post date:** [June 3, 2020, 12:03pm UTC](https://zola.discourse.group/t/getting-latest-post-for-different-style/445/1 "2020-06-03T12:03:34Z")

</div>

I want to separate the latest article so I can make different style. for example if I have post A, B, and C, I want to have A for highlight style (using card) and the rest will be on ordinary list.

How to achieve this? I already sort it by date, but cannot separate the latest post.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [June 4, 2020, 8:43am UTC](https://zola.discourse.group/t/getting-latest-post-for-different-style/445/2 "2020-06-04T08:43:41Z")

</div>

You can check the index when iterating on the posts: [https://tera.netlify.app/docs/#for](https://tera.netlify.app/docs/#for) in that case `loop.index0 == 0`
