Skip to content
Browse files

fix for #11 pagination

  • Loading branch information...
1 parent 4c5d2a9 commit 721d6f81113c6bad8f6ae3a8aacb3b7e78229c2f @codescape committed Mar 12, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.html
View
6 index.html
@@ -13,7 +13,11 @@
<li class="prev"><a href="/page{{ paginator.next_page }}" title="Ältere Beiträge">← Ältere Beiträge</a></li>
{% endif %}
{% if paginator.previous_page %}
- <li class="next"><a href="/page{{ paginator.previous_page }}" title="Neuere Beiträge">Neuere Beiträge →</a></li>
+ {% if paginator.previous_page == 1 %}
+ <li class="next"><a href="/" title="Neuere Beiträge">Neuere Beiträge →</a></li>
+ {% else %}
+ <li class="next"><a href="/page{{ paginator.previous_page }}" title="Neuere Beiträge">Neuere Beiträge →</a></li>
+ {% endif %}
{% endif %}
</ul>
</nav>

0 comments on commit 721d6f8

Please sign in to comment.
Something went wrong with that request. Please try again.