Introduce flask_arrest, fix dotenv loading (Apache), and new template macro "nl.jinja2"

This commit is contained in:
Yusur 2023-12-12 10:10:20 +01:00
parent 910e01b691
commit acf918f656
10 changed files with 80 additions and 118 deletions

View file

@ -13,8 +13,11 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
{% endif %}
{% block json_info %}{% endblock %}
{% block ldjson %}{% endblock %}
</head>
<body {% if request.cookies.get('dark') == '1' %}class="dark"{% endif %}>
<body {% if request.cookies.get('dark') == '1' -%}
class="dark"
{%- endif %}>
<div id="__top"></div>
<header class="header">
<span class="header-app-name"><a href="/">{{ app_name }}</a></span>