blog: center align page numbers

This commit is contained in:
alreadyburnt 2021-04-14 04:25:20 +02:00 committed by erciccione
parent 0e5383f991
commit 1396ba2e56
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF

View file

@ -62,32 +62,31 @@ title: titles.blogbytag
{% endfor %} {% endfor %}
</div> </div>
<!-- End full block--> <!-- End full block-->
{% if paginator.total_pages > 1 %}
<div class="page-numbers"><p>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ site.baseurl }}/blog">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</p></div>
{% endif %}
</section> </section>
<a href="#" class="arrow-up" aria-label="{% t accessibility.arrowup %}" title="{% t accessibility.gotop %}"><i></i></a> <a href="#" class="arrow-up" aria-label="{% t accessibility.arrowup %}" title="{% t accessibility.gotop %}"><i></i></a>
</div> </div>
{% if paginator.total_pages > 1 %}
<div class="text-center page-numbers"><p>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ site.baseurl }}/blog">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</p></div>
{% endif %}