{% comment %} Pager for a Django Page object. page_obj the Page (ListView supplies it implicitly; detail pages pass it explicitly, e.g. `with page_obj=gl_entries param="gl_page"`) param query key to drive paging, default "page". Use a distinct param per table when several pagers share one page. hx_target optional CSS selector for HTMX swap paging (live-filter lists). Other current query params are preserved on every link so filters/sort and sibling pagers survive navigation. {% endcomment %} {% with p=param|default:"page" %} {% if page_obj.paginator.num_pages > 1 %} {% endif %} {% endwith %}