From 3e2ae65840da545f8b69ab6c03cb786d25b55393 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Sat, 6 Apr 2024 12:32:06 +0200
Subject: [PATCH] Make room for more page templates

---
 templates/page.html          | 15 +--------------
 templates/pages/content.html | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 14 deletions(-)
 create mode 100644 templates/pages/content.html

diff --git a/templates/page.html b/templates/page.html
index 4b67fcdb..2aa2a9a0 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,14 +1 @@
-{% extends "base.html" %}
-
-{% block main %}
-  <section class="section">
-    <div class="container">
-      <h1 class="title is-1">{{ page.title }}</h1>
-      {% block content %}
-        <div class="content mt-4">
-          {{ page.content | safe }}
-        </div>
-      {% endblock content %}
-    </div>
-  </section>
-{% endblock %}
+{% extends "pages/content.html" -%}
diff --git a/templates/pages/content.html b/templates/pages/content.html
new file mode 100644
index 00000000..4b67fcdb
--- /dev/null
+++ b/templates/pages/content.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block main %}
+  <section class="section">
+    <div class="container">
+      <h1 class="title is-1">{{ page.title }}</h1>
+      {% block content %}
+        <div class="content mt-4">
+          {{ page.content | safe }}
+        </div>
+      {% endblock content %}
+    </div>
+  </section>
+{% endblock %}
-- 
GitLab