summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2017-11-18 15:08:17 +1100
committerdaniel-Jones <daniel@danieljon.es>2017-11-18 15:08:17 +1100
commit73d03637df6856a6fc00b4173c6aeb4961c8593d (patch)
tree207c155bddb755eef0a86024d9e78e0b0470f1fa
parente4e026d06d084b21e59a835a6605903c439cd5a9 (diff)
downloadwebsite-73d03637df6856a6fc00b4173c6aeb4961c8593d.tar.gz
website-73d03637df6856a6fc00b4173c6aeb4961c8593d.zip
fixed bar because bad friend
-rw-r--r--generatesite.py2
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> ";