diff options
-rw-r--r-- | generatesite.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generatesite.py b/generatesite.py index 4415ac7..a5c0e17 100644 --- a/generatesite.py +++ b/generatesite.py @@ -137,7 +137,10 @@ def generateblog(special): if count < postcount + 1: with open(blogsrc + "/final/" + str(x) + ".txt") as contentfile: content = contentfile.read(); - page += "<div id='" + str(total_count) + "'> post #" + str((postcount + 1) - x) + "<br><a href='" + directdir + "/" + str(total_count) + "'>direct link</a>" + content + "</div><hr>"; + postnum = str((postcount+1)-x); + if postnum == "101": + postnum = "5"; + page += "<div id='" + str(total_count) + "'> post #" + postnum + "<br><a href='" + directdir + "/" + str(total_count) + "'>direct link</a>" + content + "</div><hr>"; count += 1; total_count -= 1; if cpage <= pagecount: |