# Display an element only on the first page

**URL:** <https://discourse.gohugo.io/t/display-an-element-only-on-the-first-page/17887>\
**Category:** support\
**Created:** [April 1, 2019, 2:19pm UTC](https://discourse.gohugo.io/t/display-an-element-only-on-the-first-page/17887 "2019-04-01T14:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hatchan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hatchan/32/8141_2.png) [@Hatchan](https://discourse.gohugo.io/u/Hatchan)\
**Post date:** [April 1, 2019, 2:19pm UTC](https://discourse.gohugo.io/t/display-an-element-only-on-the-first-page/17887/1 "2019-04-01T14:19:00Z")

</div>

Hello,

I have a little problem on my website, it’s for my homepage. On my index.html file (who is my homepage) i have a part (called with a class “top-section”) who displays a tag list and a post highlight. and just after that i have a call to my list page for display my posts.

My problem is, i want my “top-section” display only on the “page one” for example if you go on the page two i don’t want the “top-section”

here you can find my dummy project : [https://github.com/hatchan21/Dummy-Blog](https://github.com/hatchan21/Dummy-Blog)

If you have some littles ideas for that…

Thank you very much

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [April 1, 2019, 2:45pm UTC](https://discourse.gohugo.io/t/display-an-element-only-on-the-first-page/17887/2 "2019-04-01T14:45:13Z")

</div>

You can add a check that only displays this top-section on the first page

```nohighlight
{{ if eq .Paginator.PageNumber 1 }}
  // show top-section 
{{ end }}

```

Also, I’ve updated this thread title to better reflect your question

---

<div class="post-metadata">

**Author:** ![Hatchan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hatchan/32/8141_2.png) [@Hatchan](https://discourse.gohugo.io/u/Hatchan)\
**Post date:** [April 1, 2019, 3:02pm UTC](https://discourse.gohugo.io/t/display-an-element-only-on-the-first-page/17887/3 "2019-04-01T15:02:58Z")

</div>

It works perfectly ! thank you very much !
