max_num_pages >= 2 ) { get_template_part( 'inc/index', 'nav' ); } else { // avoids showing infinite scroll if there are no pages to load } ?>