diff options
author | daniel-Jones <daniel@danieljon.es> | 2017-11-24 09:06:46 +1100 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2017-11-24 09:06:46 +1100 |
commit | 68eb05f5c0df68e754e5eeeb154c445bf687368c (patch) | |
tree | fe0b06b16d9ddb493dd26ba8a765eaae06c1f0ff | |
parent | 34187df18835a6b13ffd4e045e1d69e2b8260248 (diff) | |
download | website-68eb05f5c0df68e754e5eeeb154c445bf687368c.tar.gz website-68eb05f5c0df68e754e5eeeb154c445bf687368c.zip |
blog
removed the <- and -> links (first and last page) because they were utterly useless.
-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(): |