tweaking page links
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ def generateBodies(db):
|
||||
counter += 1
|
||||
|
||||
if i > 1:
|
||||
prev = '<a href="' + documentRoot + '/page' + str(i-1) + '.html"><p>Page ' + str(i-1) + '</p></a>'
|
||||
prev = '<a href="' + documentRoot + '/page' + str(i-1) + '.html"><p>\u2b05 Page ' + str(i-1) + '</p></a>'
|
||||
else:
|
||||
prev = ""
|
||||
|
||||
@@ -82,7 +82,7 @@ def generateBodies(db):
|
||||
if i == pageCount:
|
||||
following = ""
|
||||
else:
|
||||
following = '<a href="' + documentRoot + '/page' + str(i+1) + '.html"><p>Page ' + str(i+1) + '</p></a>'
|
||||
following = '<a href="' + documentRoot + '/page' + str(i+1) + '.html"><p>Page ' + str(i+1) + ' \u27a1</p></a>'
|
||||
|
||||
with open("./blog/page" + str(i) + ".html", "w") as f:
|
||||
f.write(rollTemplate.render(prevPage=prev, curPage=cur, nextPage=following, webRoot=documentRoot, blogContent=blobStack, siteCopyright=copyrightHolder))
|
||||
|
||||
Reference in New Issue
Block a user