diff options
-rw-r--r-- | generatesite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generatesite.py b/generatesite.py index 8d2db51..38e2cbc 100644 --- a/generatesite.py +++ b/generatesite.py @@ -38,13 +38,13 @@ def generateindex(): def generatepagebar(currentpage, pagecount): print("generating page bar for {} total {}".format(currentpage, pagecount)); - pages = "<div class='middle'><a href='1'><-</a> <a href='" + str(pagecount if int(currentpage) == 1 else int(currentpage)-1) + "'>prev</a> "; + pages = "<div class='middle'> <a href='" + str(pagecount 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> "; else: pages += "<a href=" + str(x) + ">" + str(x) + "</a> "; - pages += "<a href='" + str(1 if currentpage == pagecount else int(currentpage)+1) + "'>next</a> <a href='" + str(x) + "'>-></a></div>"; + pages += "<a href='" + str(1 if currentpage == pagecount else int(currentpage)+1) + "'>next</a></div>"; return pages; def generateportfolio(): |