{% if current > 0 %}
  1. Prev
  2. {% endif %} {% for page in pages %} {% set isCurrent = loop.index - 1 === current %}
  3. {% if not isCurrent %}{% endif %} {% if isCurrent %}{% endif %} {{ loop.index }} {% if isCurrent %}{% endif %} {% if not isCurrent %}{% endif %}
  4. {% endfor %} {% if current < pages.length - 1 %}
  5. Next
  6. {% endif %}