Display an element only on the first page

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

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

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

2 Likes