mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +00:00
Fixed paging.
This commit is contained in:
parent
e0f780a5d7
commit
7e5166b06b
@ -13,7 +13,7 @@ layout: default
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<div class="pagination">
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.url | replace: '//', '/' }}">« Newer</a>
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Newer</a>
|
||||
{% else %}
|
||||
<span>« Newer</span>
|
||||
{% endif %}
|
||||
@ -22,14 +22,14 @@ layout: default
|
||||
{% if page == paginator.page %}
|
||||
<em>{{ page }}</em>
|
||||
{% elsif page == 1 %}
|
||||
<a href="{{ '/index.html' | prepend: site.url | replace: '//', '/' }}">{{ page }}</a>
|
||||
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | prepend: site.url | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||||
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.url | replace: '//', '/' }}">Older »</a>
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older »</a>
|
||||
{% else %}
|
||||
<span>Older »</span>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user