From 9dcfd3e3c164155d52fca50d0a198b41cd5a5a55 Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 31 May 2023 01:11:17 +0200 Subject: [PATCH] Adjust 404 --- templates/404.html | 17 +++++++---------- templates/macros.html | 4 ++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 templates/macros.html diff --git a/templates/404.html b/templates/404.html index a2b7278..0697a0e 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,17 +1,14 @@ {% extends "base.html" %} +{% import "macros.html" as macros %} + {% block content %} -
-

Seite nicht gefunden

+
+

Page not found!

- + - +
{{ macros::btn(link=get_url(path='/') , text="Zurück zur Startseite") }}
{% endblock %} diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..c13e5e9 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,4 @@ +{% macro btn(link, text) %} + {{ text }} +{% endmacro %}