{% if pagination is defined and pagination is not empty %}
<nav class="cs-pagination" role="navigation" aria-label="Pagination Navigation">
<ul>
{% if pagination.previous is not empty %}
<li class="page-prev">
{% if pagination.previous == 1 %}
<a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}" title="Go to Previous Page">Prev</a>
{% else %}
<a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}/page/{{ pagination.previous }}" title="Go to Previous Page">Prev</a>
{% endif %}
</li>
{% endif %}
{% if pagination.previous is not empty %}
<li class="page-main">
<a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}"><em class="fa fa-th-large" aria-hidden="true"></em><span class="sr-only">Go to Page 1</span></a>
</li>
{% endif %}
{% if pagination.next is not empty %}
<li class="page-next">
<a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}/page/{{ pagination.next }}" title="Go to Next Page">Next</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}