{% set posts = __SELF__.posts %} {% if posts.lastPage > 1 %} {% partial '@pagination' pagination=posts %} {% endif %}