mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 00:01:36 +01:00
unify configuration of site titles
This commit is contained in:
@@ -197,7 +197,7 @@ def news():
|
||||
except FileNotFoundError as e:
|
||||
return ("File not found Error ({})".format(e), HTTP_NOT_FOUND)
|
||||
|
||||
return flask.render_template("news.html", conf=app.config, article=article)
|
||||
return flask.render_template("news.html", conf=app.config, article=article, title=article["title"])
|
||||
|
||||
@app.route("/static/<path:path>")
|
||||
def sendStatic(path):
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
<meta name="author" content="{{ conf['SITE_AUTHOR'] }}">
|
||||
<meta name="title" content="{{ conf['SITE_TITLE'] }}">
|
||||
|
||||
{% if title %}
|
||||
<title>{{ title }}</title>
|
||||
{% else %}
|
||||
<title>{{ conf['SITE_TITLE'] }}</title>
|
||||
{% endif %}
|
||||
|
||||
<link rel="shortcut icon" href="/defaultFavicon.ico">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<head>
|
||||
|
||||
{% include 'head.html' %}
|
||||
<title>{{ article["title"] }}</title>
|
||||
|
||||
</head>
|
||||
<body class="bg-special">
|
||||
|
||||
Reference in New Issue
Block a user