From a097c125e1461095dd29be73f21662046b86a07e Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Sat, 18 Nov 2017 15:10:43 +1100 Subject: prev on 1 wraps around --- generatesite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generatesite.py b/generatesite.py index c480014..2d5d069 100644 --- a/generatesite.py +++ b/generatesite.py @@ -38,7 +38,7 @@ def generateindex(): def generatepagebar(currentpage, pagecount): print("generating page bar for {} total {}".format(currentpage, pagecount)); - pages = "
page <- prev "; + pages = "
page <- prev "; for x in range(1, int(pagecount)+1): if x == int(currentpage): pages += "" + str(x) + " "; -- cgit v1.2.3