diff --git a/generate.py b/generate.py
index ba7e5d8..dee34dd 100644
--- a/generate.py
+++ b/generate.py
@@ -23,7 +23,7 @@ def generateNavigationBar(lines):
navbar = E
for line in lines:
split = line.strip().split(";", 1)
- navbar.li(HTML("" + split[0]))
+ navbar = navbar.li(HTML("" + split[0] + ""))
if os.path.exists("./navbar"):
with open("./navbar", 'r') as navbarfile:
@@ -45,9 +45,9 @@ for file in os.listdir("./"):
if pagetitle != homepage:
foldername = "/" + pagetitle.replace(" ", "-").lower()
os.mkdir("./website-output" + foldername)
-
+ print(foldername)
with open("./website-output" + foldername + "/index.html", 'w') as newpage:
if 'navbar' in globals():
- newpage.write(str(E.ul(navbar)))
+ newpage.write(str(E.ul(navbar)) + str(doc))
else:
newpage.write(str(doc))