We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f34baa0 commit cdad87eCopy full SHA for cdad87e
source/index.html
@@ -9,10 +9,14 @@
9
{% endfor %}
10
<nav id="pagenavi">
11
{% if paginator.previous_page %}
12
- <a href="{{paginator.previous_page}}" class="prev">Prev</a>
+ {% if paginator.previous_page == 1 %}
13
+ <a href="{{ root_url }}/" class="prev">Prev</a>
14
+ {% else %}
15
+ <a href="{{ root_url }}/posts/{{paginator.previous_page}}" class="prev">Prev</a>
16
+ {% endif %}
17
{% endif %}
18
{% if paginator.next_page %}
- <a href="{{paginator.next_page}}" class="next">Next</a>
19
+ <a href="{{ root_url }}/posts/{{paginator.next_page}}" class="next">Next</a>
20
21
<div class="center"><a href="{{ root_url }}/blog/archives">Blog Archives</a></div>
-</nav>
22
+</nav>
0 commit comments