mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-16 15:58:16 +00:00
blog: center align page numbers
This commit is contained in:
parent
0e5383f991
commit
1396ba2e56
1 changed files with 25 additions and 26 deletions
|
@ -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: '//', '/' }}">« 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>
|
</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: '//', '/' }}">« 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 a new issue