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)