{% load custom_filters %}
{% ifnotequal paginator.page_count 1 %} Page {% if paginator.has_previous %} |<<先頭ページへ    <前へ    {% endif %}   {% for page in paginator.links %} {% if page.number %} {{ page.number }}    {% else %} {{ page }}    {% endif %} {% endfor %}   {% if paginator.has_next %} 次へ>    末尾ページへ>>|    {% endif %} {% endifnotequal %}