mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Fix 'page 1' special treatment in pagination docs (#8230)
Merge pull request 8230
This commit is contained in:
committed by
GitHub
parent
d596ceb5c2
commit
148608256a
@@ -154,7 +154,7 @@ 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="{{ '/' | relative_url }}">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user