diff options
-rw-r--r-- | generatesite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generatesite.py b/generatesite.py index 0f5d399..c480014 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 = "<div class='middle'>page <a href='1'><-</a> <a href='" + str(1 if currentpage == 1 else int(currentpage)-1) + "'>prev</a> "; + pages = "<div class='middle'>page <a href='1'><-</a> <a href='" + str(1 if int(currentpage) == 1 else int(currentpage)-1) + "'>prev</a> "; for x in range(1, int(pagecount)+1): if x == int(currentpage): pages += "<strong><i><a href=" + str(x) + ">" + str(x) + "</a></i></strong> "; |