div class 'content' for styling

This commit is contained in:
Govindas 2022-09-06 21:18:04 +03:00
parent 1f7ea6a327
commit a841184e4e
2 changed files with 5 additions and 4 deletions

View File

@ -32,3 +32,4 @@ Note: folder name must be lowercase and spaces must be replaced with `-` charact
# To-do list
- Re-think footer (it works, but I'm unsure if it is flexible enough)
- Delete removed page files from website-output during next site generation (Last, to be done on release, so it doesn't disturb development)
- Maybe document styling? (div classes: 'content', 'dropdown', 'dropbtn', 'dropdown-content', etc.)

View File

@ -152,16 +152,16 @@ def generatePage(title, doc, path):
navbar = generateNavigationBar(navbarfile.readlines(), title)
if 'footer' in globals():
pages.append(str(E.ul(navbar)) + str(doc) + str(E.ul(footer)))
pages.append(str(E.ul(navbar)) + "<div class='content'>" + str(doc) + "</div>" + str(E.ul(footer)))
else:
pages.append(str(E.ul(navbar)) + str(doc))
pages.append(str(E.ul(navbar)) + "<div class='content'>" + str(doc) + "</div>")
else:
print("No 'navbar' file found, there will be no navigation bar.")
if 'footer' in globals():
pages.append(str(doc) + str(E.ul(footer)))
pages.append("<div class='content'>" + str(doc) + "</div>" + str(E.ul(footer)))
else:
pages.append(str(doc))
pages.append("<div class='content'>" + str(doc) + "</div>")
titles.append(title)
paths.append(path)