diff --git a/example_config.py b/example_config.py index 84d2adf..52b5202 100644 --- a/example_config.py +++ b/example_config.py @@ -57,3 +57,5 @@ THANKS_STRONG_TEXT = "Strong Text" THANKS_TEXT = "Normal Text" DISABLE_MAIN_LINKS = False + +NAVBAR_LINKS = [ ("Navbar-Item1", "/target"), ("Navbar-Item2", "/target2") ] diff --git a/server.py b/server.py index 8c2270a..0176de1 100755 --- a/server.py +++ b/server.py @@ -156,12 +156,14 @@ def invalidateEventCache(): @app.route("/") def root(): + navbarLinks = [("test", "contact"),("test", "contact"),("test", "contact"),("test", "contact")] return flask.render_template("index.html", conf=app.config, mainLinks=readJsonDir(app.config["MAIN_LINKS_DIR"]), events=getEventsCache(), moreEvents=len(getEventsCache())>3, sections=readJsonDir(app.config["SECTIONS_DIR"]), - announcements=parseNewsDirWithTimeout()) + announcements=parseNewsDirWithTimeout(), + navbarLinks=navbarLinks) @app.route("/impressum") def impressum(): diff --git a/templates/navbar.html b/templates/navbar.html index 5eabd0e..1051a3a 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -11,7 +11,7 @@