improve projects page

This commit is contained in:
Yannik Schmidt
2020-09-09 20:15:22 +02:00
parent 0cd586e8ac
commit e46a229f85
2 changed files with 9 additions and 3 deletions

View File

@@ -200,6 +200,7 @@ def people():
@app.route("/content/")
def content():
identifier = IDENTIFIER_PREFIX + flask.request.args.get("id")
container=False
if identifier in app.config:
# check for extra config #
@@ -215,8 +216,10 @@ def content():
else:
with open(fullpath) as f:
markupText = markdown2.markdown(f.read())
container = True
return flask.render_template("default_content.html", conf=app.config, markupText=markupText)
return flask.render_template("default_content.html", container=container,
conf=app.config, markupText=markupText)
else:
return (EMPTY_STRING, HTTP_NOT_FOUND)

View File

@@ -6,8 +6,10 @@
</head>
<body class="bg-special">
{% include 'navbar.html' %}
{% if not container %}
{{ markupText | safe }}
{% else %}
<div class="container mt-5 mb-5 h-100">
<div class="row impressum mt-5"></div>
<div class="col-lg-12">
@@ -16,7 +18,8 @@
</div>
</div>
</div>
{% include 'footer.html' %}
{% endif %}
{% include 'footer.html' %}
</body>
</html>