From 29a2ddba51cef619174928944d6dff66ce2bd090 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Thu, 25 Feb 2021 16:43:48 +0100 Subject: [PATCH] template: add navigation Add navigation to a 'Verein' and a 'Impressum' page. Signed-off-by: Johannes Thumshirn --- app.py | 8 ++++++++ templates/impressum.html | 3 +++ templates/template.html | 5 +++++ templates/verein.html | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 templates/impressum.html create mode 100644 templates/verein.html diff --git a/app.py b/app.py index 3567727..008c4a2 100755 --- a/app.py +++ b/app.py @@ -14,6 +14,14 @@ def page(path): page = pages.get_or_404(path) return render_template('page.html', page=page) +@app.route('/verein.html') +def verein(): + return render_template('verein.html') + +@app.route('/impressum.html') +def impressum(): + return render_template('impressum.html') + @app.route('/') def index(): posts = [p for p in pages if "date" in p.meta] diff --git a/templates/impressum.html b/templates/impressum.html new file mode 100644 index 0000000..26c457f --- /dev/null +++ b/templates/impressum.html @@ -0,0 +1,3 @@ +{% extends "template.html" %} +{% block content %} +{% endblock %} diff --git a/templates/template.html b/templates/template.html index 4d04b0c..d318902 100644 --- a/templates/template.html +++ b/templates/template.html @@ -8,6 +8,11 @@
logo
+
{% block content %} {% endblock %} diff --git a/templates/verein.html b/templates/verein.html new file mode 100644 index 0000000..26c457f --- /dev/null +++ b/templates/verein.html @@ -0,0 +1,3 @@ +{% extends "template.html" %} +{% block content %} +{% endblock %}