mirror of
https://github.com/monero-project/monero-site.git
synced 2025-01-18 23:53:42 +02:00
blog: center align page numbers
This commit is contained in:
parent
0e5383f991
commit
1396ba2e56
@ -62,32 +62,31 @@ title: titles.blogbytag
|
||||
{% endfor %}
|
||||
</div>
|
||||
<!-- End full block-->
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<div class="page-numbers"><p>
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">« Prev</a>
|
||||
{% else %}
|
||||
<span>« 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 »</a>
|
||||
{% else %}
|
||||
<span>Next »</span>
|
||||
{% endif %}
|
||||
</p></div>
|
||||
{% endif %}
|
||||
</section>
|
||||
<a href="#" class="arrow-up" aria-label="{% t accessibility.arrowup %}" title="{% t accessibility.gotop %}"><i></i></a>
|
||||
</div>
|
||||
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<div class="text-center page-numbers"><p>
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">« Prev</a>
|
||||
{% else %}
|
||||
<span>« 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 »</a>
|
||||
{% else %}
|
||||
<span>Next »</span>
|
||||
{% endif %}
|
||||
</p></div>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user