Add title if condition

This commit is contained in:
Stephan Porada 2019-07-04 11:36:23 +02:00
parent b93bbcb756
commit f4fcba887d

View File

@ -1,8 +1,10 @@
<html>
<head>
<title>
Opaque - {% block title %}{% endblock %}
</title>
{% if title %}
<title>Opaque {{ title }}</title>
{% else %}
<title>Opaque</title>
{% endif %}
<!-- import materialize icons css -->
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='fonts/material-design-icons-3.0.1/iconfont/material-icons.css') }}">
<!--Import materialize.css-->
@ -12,7 +14,7 @@
</head>
<body class="blue-grey lighten-5">
{% block body %}
{% endblock %}
<!--JavaScript at end of body for optimized loading-->