{% if pagination is defined and pagination %}
<nav class="cs-pagination" role="navigation" aria-label="Pagination Navigation">
<ul>
{% if pagination.previous is not null %}
<li class="page-prev">
{% if pagination.previous is same as(0) %}
<a href="{{- web_url_request(vars.request, {
page: null,
})|e('html_attr') -}}" title="Go to Previous Page">Prev</a>
{% else %}
<a href="{{- web_url_request(vars.request, {
page: pagination.previous,
})|e('html_attr') -}}" title="Go to Previous Page">Prev</a>
{% endif %}
</li>
{% endif %}
{% if pagination.previous is not null and pagination.next is not null %}
<li class="page-main">
<a href="{{- web_url_request(vars.request, {
page: pagination.current,
})|e('html_attr') -}}"><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 null %}
<li class="page-next">
<a href="{{- web_url_request(vars.request, {
page: pagination.next,
})|e('html_attr') -}}" title="Go to Next Page">Next</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}