{% if page_number == 0 %}
{% else %}
    <br/>
    <ul class="pagination pull-right">
        {% if current_page == 1 %}
            <li class="disabled"><a href="#">prev</a></li>
        {% else %}
          <li><a href="/blog/page/{{ current_page - 1 }}">prev</a></li>
        {% endif %}

        {% if page_number %}
            {% for page_number in range(1, page_number + 2) %}
                {% if page_number == current_page %}
                    <li class="active"><a href="#">{{ page_number }}<span class="sr-only">(current)</span></a></li>
                {% elif page_number == 1 %}
                <li><a href="/">{{ page_number }}</a></li>
                {% else %}
                <li><a href="/blog/page/{{ page_number }}">{{ page_number }}</a></li>
                {% endif %}
            {% endfor %}
        <!-- <li><a href="#">prev</a></li> -->
            {% if current_page == page_number + 1 %}
                <li class="disabled"><a href="#">next</a></li>
            {% else %}
                <li><a href="/blog/page/{{ current_page + 1 }}">next</a></li>
            {% endif %}
        {% endif %}
    </ul>
{% endif %}
