{% if next or prev %}
{% if next %} Next {% endif %} {% if prev %} Previous {% endif %} {%- else %}
{%- endif %}