{% templatetag openblock %} if page_obj.has_previous or page_obj.has_next {% templatetag closeblock %}