From fe14efc7efd30dca5bfa9eb8fe41d4aed115d8fe Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 12 Mar 2024 16:11:56 +0100
Subject: [PATCH] Remove unused template blocks

---
 templates/baustelle.html     | 11 -----------
 templates/page.html          | 12 +++++-------
 templates/pages/heading.html | 12 ------------
 templates/project.html       |  5 -----
 4 files changed, 5 insertions(+), 35 deletions(-)
 delete mode 100644 templates/baustelle.html
 delete mode 100644 templates/pages/heading.html

diff --git a/templates/baustelle.html b/templates/baustelle.html
deleted file mode 100644
index 93f3a4eb..00000000
--- a/templates/baustelle.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<h3>Baustelle</h3>
-<p>Unsere neue Website befindet sich aktuell noch im Aufbau.</p>
-
-<p>Aktuelles rund um den Verein und die Projekte gibt es im Fediverse unter <a href="https://bildung.social/@Teckids" rel="me">@Teckids@bildung.social</a> und <a href="/updates/newsletter">über unseren Newsletter</a>.</p>
-
-<p>Bis wir alle Informationen übersichtlich aufbereitet haben, schaut gerne an folgenden Stellen vorbei:</p>
-<ul>
-	<li><a href="https://forum.teckids.org">Unser Forum</a> für Diskussionen rund um unsere Projekte.</li>
-	<li><a href="https://wiki.teckids.org">Das neue Wiki</a>, eine Sammlung von Dokumentation zu verschiedenen Themen.</li>
-	<li><a href="/gemeinschaft/verein/kontakt">Kontakt</a> zum Verein und den Projekten.</li>
-</ul>
diff --git a/templates/page.html b/templates/page.html
index c30179b5..cb90ee49 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,16 +1,14 @@
 {% extends "base.html" %}
 
 {% block main %}
-    {% include "pages/heading.html" %}
     <div class="my-4">
             <div class="section">
-                <div class="content container">
-                    {% if page.content %}
-                    {{ page.content | safe }}
-                    {% else %}
-                    {% include "baustelle.html" %}
-                    {% endif %}
+               <div class="container">
+                <h1 class="title is-1">{{ page.title }}</h1>
+                <div class="content">
+                  {{ page.content | safe }}
                 </div>
             </div>
+            </div>
     </div>
 {% endblock %}
diff --git a/templates/pages/heading.html b/templates/pages/heading.html
deleted file mode 100644
index bd049d99..00000000
--- a/templates/pages/heading.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<section class="hero is-small">
-    <div class="hero-body">
-        <div class="container has-text-centered">
-            <h1 class="title mb-0"><a href="{{ page.permalink }}">{{ page.title }}</a></h1>
-            {% if page.description %}
-                <p class="subtitle">
-                    {{ page.description }}
-                </p>
-            {% endif %}
-        </div>
-    </div>
-</section>
diff --git a/templates/project.html b/templates/project.html
index c7a6a061..1658e694 100644
--- a/templates/project.html
+++ b/templates/project.html
@@ -43,9 +43,4 @@
     </div>
   </div>
 </section>
-        <section class="section">
-          <div  class="container content">
-            {% include "baustelle.html" %} 
-          </div >
-        </section>
 {% endblock %}
-- 
GitLab