From a841184e4effe086e442f52a302e586b27bc8696 Mon Sep 17 00:00:00 2001 From: Govindas Date: Tue, 6 Sep 2022 21:18:04 +0300 Subject: [PATCH] div class 'content' for styling --- README.md | 1 + gsitegen/generate.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bea7297..fac6561 100644 --- a/README.md +++ b/README.md @@ -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.) diff --git a/gsitegen/generate.py b/gsitegen/generate.py index 6f4376e..6b499f9 100644 --- a/gsitegen/generate.py +++ b/gsitegen/generate.py @@ -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)) + "
" + str(doc) + "
" + str(E.ul(footer))) else: - pages.append(str(E.ul(navbar)) + str(doc)) + pages.append(str(E.ul(navbar)) + "
" + str(doc) + "
") 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("
" + str(doc) + "
" + str(E.ul(footer))) else: - pages.append(str(doc)) + pages.append("
" + str(doc) + "
") titles.append(title) paths.append(path)