{# Only renders this section if there are links to render #} {% if pagination.href.next or pagination.href.previous %} {% endif %}