diff options
author | daniel-Jones <daniel@danieljon.es> | 2017-09-10 13:58:51 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2017-09-10 13:58:51 +0930 |
commit | c7352082ebbd1416d3899609617e4fe3f2b7284e (patch) | |
tree | d5d843e3ab3abb6769ce2fc8fc3d7999b483700d | |
parent | afa229ebef61460bd06071104192efbdac5bf421 (diff) | |
download | website-c7352082ebbd1416d3899609617e4fe3f2b7284e.tar.gz website-c7352082ebbd1416d3899609617e4fe3f2b7284e.zip |
added page anchors for blog posts so they can be linked directly
-rw-r--r-- | generatesite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generatesite.py b/generatesite.py index 10afbaa..7f6af81 100644 --- a/generatesite.py +++ b/generatesite.py @@ -117,7 +117,7 @@ def generateblog(): if count < postcount + 1: with open(blogsrc + "/final/" + str(x) + ".txt") as contentfile: content = contentfile.read(); - page += "#" + str(total_count) + content + "<hr>"; + page += "<div id='" + str(total_count) + "'> <a href='" + str(cpage) + ".html#" + str(total_count) + "' name='" + str(total_count) + "'>#" + str(total_count) + "</a>" + content + "<hr>"; count += 1; total_count -= 1; if cpage <= pagecount: |