diff options
author | Daniel Jones <admin@danieljon.es> | 2019-12-01 20:56:28 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-12-01 20:56:28 +1030 |
commit | 79d8895e86fb2eeebbbefed6d5c44e4a7e1bc680 (patch) | |
tree | 14f4a3fa6a25f323cebdda4e8561a865484fb37c | |
parent | d6b4ece734c60819f72bb4e31394b90da0caa23f (diff) | |
download | website-79d8895e86fb2eeebbbefed6d5c44e4a7e1bc680.tar.gz website-79d8895e86fb2eeebbbefed6d5c44e4a7e1bc680.zip |
dumb little egg
-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: |