I have some Featured news entries which appear at the top of the rest of the news entries.
How do I set this so they are only on page 1 (before any pagination pages)?
{# Only show on page 1 of pagination #}
{% for entry in craft.entries.section('newsEvents').highlightNews('1').limit(2) %}
<div class="col-12 {% if loop.index is divisibleby(2) %}last{% endif %} panel ">
{% if entry.listingImage|length %}
{% for image in entry.listingImage %}
<div class="panel__img">
<a href="{{ entry.url }}"><img src="{{ image.getUrl('listingMedium')}}" alt="{{ image.title }}" /></a>
</div>
{% endfor %}
{% endif %}
</div>
{# End only show on page 1 of pagination #}
{% paginate craft.entries.section('newsEvents').limit(12) as entriesOnPage %}
{% for entry in entriesOnPage %}
...
{% endfor %}
{% if paginate.totalPages > 1 %}
{% set pagination = true %}
<ul class="pagination">
{% if paginate.prevUrl %}<li><a href="{{ paginate.prevUrl }}">«</a></li>{% endif %}
{% for page, url in paginate.getPrevUrls(5) %}
<li><a href="{{ url }}">{{ page }}</a></li>
{% endfor %}
<li class="current">{{ paginate.currentPage }}</li>
{% for page, url in paginate.getNextUrls(5) %}
<li><a href="{{ url }}">{{ page }}</a></li>
{% endfor %}
{% if paginate.nextUrl %}<li><a href="{{ paginate.nextUrl }}">»</a></li>{% endif %}
</ul>
{% endif %}