Fix dropdown with no link being clickable, was breaking mobile support & edit README.md
This commit is contained in:
@@ -42,6 +42,8 @@ def generateNavigationBar(lines, pagetitle):
|
||||
link = parseLink(link, pagetitle, homepage)
|
||||
if link.strip() == "#":
|
||||
dphtml = dphtml(HTML("<div class='dropdown'><div class='dropbutton'><div class='active'><a href='" + link.strip() + "'>" + title + "</a></div></div><div class='dropdown-content'>"))
|
||||
elif link.strip() == "":
|
||||
dphtml = dphtml(HTML("<div class='dropdown'><div class='dropbutton'><a>" + title + "</a></div><div class='dropdown-content'>"))
|
||||
else:
|
||||
dphtml = dphtml(HTML("<div class='dropdown'><div class='dropbutton'><a href='" + link.strip() + "'>" + title + "</a></div><div class='dropdown-content'>"))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user