diff --git a/gsitegen/generate.py b/gsitegen/generate.py index 7a37ed3..c6088b8 100644 --- a/gsitegen/generate.py +++ b/gsitegen/generate.py @@ -10,6 +10,7 @@ def generateNavigationBar(lines, pagetitle): navbar = E rawhtml = False htmlstring = "" + dropdown = False for id, line in enumerate(lines): #parse raw HTML @@ -25,27 +26,38 @@ def generateNavigationBar(lines, pagetitle): # contents.append(line.split("|")) #else: # contents.append(line) - #for entry in contents: title, link = line.split(";", 1) + if line.strip().endswith("|"): + dropdown = True + line = line.strip()[-1] + dphtml = E + dphtml = dphtml(HTML("