From e11309e3f37b85a25ab5d82c6ccac5561966f56e Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Fri, 15 Sep 2023 14:33:19 +0200 Subject: [PATCH] Make text template the default --- templates/default.html.twig | 19 +++++++++++++++++-- templates/error.html.twig | 9 +-------- templates/text.html.twig | 26 -------------------------- 3 files changed, 18 insertions(+), 36 deletions(-) delete mode 100644 templates/text.html.twig diff --git a/templates/default.html.twig b/templates/default.html.twig index 1e97738..cf2666f 100644 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -1,5 +1,20 @@ {% extends 'partials/base.html.twig' %} -{% block content %} - {{ page.content|raw }} +{% block custom_stylesheets %} + {% do assets.addCss('theme://css/text.css', 10) %} {% endblock %} + +{% block content %} +
+
+
{{ page.title }}
+
+
+
+
+
+
{{ page.content|raw }}
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/error.html.twig b/templates/error.html.twig index 440d0cd..4754813 100644 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -1,8 +1 @@ -{% extends 'partials/base.html.twig' %} - -{% block content %} -
-

Fehler!

- {{ page.content|raw }} -
-{% endblock %} +{% extends 'default.html.twig' %} \ No newline at end of file diff --git a/templates/text.html.twig b/templates/text.html.twig deleted file mode 100644 index 802a1ff..0000000 --- a/templates/text.html.twig +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'partials/base.html.twig' %} - -{% block custom_stylesheets %} - {% do assets.addCss('theme://css/text.css', 10) %} -{% endblock %} - -{% block content %} -
-
-
-
-
{{ page.title }}
-
-
-
-
-
-
-
-
-
{{ page.content|raw }}
-
-
-
-
-{% endblock %}