diff options
author | Daniel Jones <admin@danieljon.es> | 2019-11-02 16:27:42 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-11-02 16:27:42 +1030 |
commit | d6b4ece734c60819f72bb4e31394b90da0caa23f (patch) | |
tree | 601e4ee895f19c58263d8eb6867dc3a62dd11981 | |
parent | 1d5c5a6421158ef6e0e88f60b92f82d50225cbc9 (diff) | |
download | website-d6b4ece734c60819f72bb4e31394b90da0caa23f.tar.gz website-d6b4ece734c60819f72bb4e31394b90da0caa23f.zip |
add post number display
-rw-r--r-- | generatesite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generatesite.py b/generatesite.py index 1e452a8..4415ac7 100644 --- a/generatesite.py +++ b/generatesite.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 ''' -Copyright Daniel Jones 2017-2018 +Copyright Daniel Jones daniel@danieljon.es script to auto-generate my static website/blog at https://danieljon.es @@ -137,7 +137,7 @@ 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) + "'> <a href='" + directdir + "/" + str(total_count) + "'>direct link</a>" + content + "</div><hr>"; + page += "<div id='" + str(total_count) + "'> post #" + str((postcount + 1) - x) + "<br><a href='" + directdir + "/" + str(total_count) + "'>direct link</a>" + content + "</div><hr>"; count += 1; total_count -= 1; if cpage <= pagecount: |