--- a/ForgeDiscussion/forgediscussion/templates/lib.html
+++ b/ForgeDiscussion/forgediscussion/templates/lib.html
@@ -115,13 +115,13 @@
</span>
</py:def>
- <py:def function="page_nav(offset,total,pagesize)"
- py:with="cur_page=offset / pagesize; num_pages=total/pagesize">
+ <py:def function="page_nav(page,count,limit)"
+ py:with="cur_page=page / limit; num_pages=count/limit">
<p>Page ${1 + cur_page} of ${1 + num_pages}</p>
<a href="."><<</a>
- <a href="?offset=${offset - pagesize}"><</a>
- <a href="?offset=${offset + pagesize}">></a>
- <a href="?offset=${total - pagesize}">>></a>
+ <a href="?page=${page - limit}"><</a>
+ <a href="?page=${page + limit}">></a>
+ <a href="?page=${count - limit}">>></a>
</py:def>
<py:def function="display_post(post)">