Fix link space (#7600)

Merge pull request 7600
This commit is contained in:
Hodong Kim 2019-04-04 06:55:10 +09:00 committed by jekyllbot
parent 4f8e1f3d3f
commit 7440050367
1 changed files with 4 additions and 12 deletions

View File

@ -145,9 +145,7 @@ page with links to all but the current page.
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}">
&laquo; Prev
</a>
<a href="{{ paginator.previous_page_path | relative_url }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
@ -156,20 +154,14 @@ page with links to all but the current page.
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ paginator.previous_page_path | relative_url }}">
{{ page }}
</a>
<a href="{{ paginator.previous_page_path | relative_url }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
{{ page }}
</a>
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}">
Next &raquo;
</a>
<a href="{{ paginator.next_page_path | relative_url }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}