<div class="blog-pagination span12"> {% set total_pages = contents.total_page_count %} <!-- sets variable for total pages --> {% set more_pages = total_pages - current_page_num %} <!-- sets variable for how many more pages are past the current pages --> {% if total_pages > 1 %}