Pagination and custom number of results

`{% if page_num < total_pages %}`

elegant