Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a55d44e

Browse files
committed
Fix pagination
1 parent 08fcec5 commit a55d44e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ react_version: 0.5.1
1717
description: A JavaScript library for building user interfaces
1818
relative_permalinks: true
1919
paginate: 5
20-
paginate_path: /blog/page:num
20+
paginate_path: /blog/page:num/
2121
nav_docs_sections:
2222
- title: Quick Start
2323
items:

docs/blog/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ <h1><a href="/react{{ page.url }}">{{ page.title }}</a></h1>
2020

2121
<div class="pagination">
2222
{% if paginator.previous_page %}
23-
<a href="/react/blog/{{ paginator.previous_page_path }}" class="previous">
23+
<a href="/react/{{ paginator.previous_page }}" class="previous">
2424
&laquo; Previous Page
2525
</a>
2626
{% endif %}
2727
{% if paginator.next_page %}
28-
<a href="/react/blog/{{ paginator.next_page_path }}" class="next">
28+
<a href="/react{{ paginator.next_page_path }}" class="next">
2929
Next Page &raquo;
3030
</a>
3131
{% endif %}

0 commit comments

Comments
 (0)