{%- if prev %}

Previous

{{ prev.title }}
{%- endif %} {%- if next %}

Next

{{ next.title }}
{%- endif %}