summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-01-05 13:34:42 +1030
committerdaniel-Jones <daniel@danieljon.es>2018-01-05 13:34:42 +1030
commit813bebb67686ae187c950edf39cc7b30153ad00c (patch)
tree66518e2c69e1b323383b7e40b725456339e17650
parent88f86ed03ce13398f83e33bb79d32cf66669e6db (diff)
downloadwebsite-813bebb67686ae187c950edf39cc7b30153ad00c.tar.gz
website-813bebb67686ae187c950edf39cc7b30153ad00c.zip
removed link to the current page in the blogs pagebar generator, it's pretty useless and only stands to confuse the user more
-rw-r--r--generatesite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generatesite.py b/generatesite.py
index 0395ae1..ac72a0a 100644
--- a/generatesite.py
+++ b/generatesite.py
@@ -41,7 +41,7 @@ def generatepagebar(currentpage, pagecount):
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> ";
+ pages += "<strong><i>" + str(x) + "</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></div>";