From b0fce1f82059837a68f47f28a8b903a8a09cbdfe Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Tue, 19 Sep 2017 19:30:22 +0930 Subject: fixed a bunch of HTML compliance issues and general changes --- generatesite.py | 6 +++--- settings.cfg | 4 ++-- template.txt | 31 ++++++++++++++++--------------- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/generatesite.py b/generatesite.py index e2972cf..1851658 100644 --- a/generatesite.py +++ b/generatesite.py @@ -38,13 +38,13 @@ def generateindex(): def generatepagebar(currentpage, pagecount): print("generating page bar for {} total {}".format(currentpage, pagecount)); - pages = "
page "; + pages = "
page "; for x in range(1, int(pagecount)+1): if x == int(currentpage): pages += "" + str(x) + " "; else: pages += "" + str(x) + " "; - pages += "
"; + pages += ""; return pages; def generateportfolio(): @@ -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 + "
"; + page += "
"; count += 1; total_count -= 1; if cpage <= pagecount: diff --git a/settings.cfg b/settings.cfg index 406352a..f3446b5 100644 --- a/settings.cfg +++ b/settings.cfg @@ -2,7 +2,7 @@ template = template.txt dir = output [index] -title = interesting stuff +title = index header =

Index

src = content/index.txt [portfolio] @@ -11,7 +11,7 @@ header =

Portfolio

src = content/portfolio.txt [blog] title = daniel's blog -header =

Blog

Rambles about myself and programming +header =

Blog

Rambles about myself and programming

# blog directory dir = blog srcdir = content/blog diff --git a/template.txt b/template.txt index 2a8299a..8fd03a9 100644 --- a/template.txt +++ b/template.txt @@ -1,32 +1,33 @@ - + + - + {TITLE} - - -
+ +
+
{CONTENT} -

page generated on {TIME}
+

page generated on {TIME} using sitegenerator
-- cgit v1.2.3