From 2f104af34c0fe5941b8b36ac9553611c74b9ffb7 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 12 Mar 2024 13:17:58 +0100
Subject: [PATCH] Harmonise front page blocks and titles

---
 templates/frontpage/blocks/blog.html     | 38 +++++++++++++-----------
 templates/frontpage/blocks/claim.html    |  4 +--
 templates/frontpage/blocks/projects.html |  4 +--
 3 files changed, 22 insertions(+), 24 deletions(-)

diff --git a/templates/frontpage/blocks/blog.html b/templates/frontpage/blocks/blog.html
index 11cde285..64684d65 100644
--- a/templates/frontpage/blocks/blog.html
+++ b/templates/frontpage/blocks/blog.html
@@ -1,23 +1,25 @@
 {% set blog_section = get_section(path="blog/_index.md") %}
-<aside class="section">
-  <h2 class="title is-2">{{ title | default(value="Aus dem Teckids-Blog") }}</h2>
-  <div class="columns is-multiline is-same-height">
-    {% for post in blog_section.pages | slice(end=4) %}
-      <div class="column is-one-quarter">
-        <div class="card">
-          <div class="card-image">
-            <figure class="image is-4by3">
-              <img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" />
-            </figure>
-          </div>
-          <div class="card-content">
-            <h3 class="title is-3">{{ post.title }}</h3>
-            <div class="content">
-              {{ post.summary | safe }}
+<section class="section">
+  <div class="container">
+    <h2 class="title is-2">{{ title | default(value="Aus dem Teckids-Blog") }}</h2>
+    <div class="columns is-multiline is-same-height">
+      {% for post in blog_section.pages | slice(end=4) %}
+        <div class="column is-one-quarter">
+          <div class="card">
+            <div class="card-image">
+              <figure class="image is-4by3">
+                <img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" />
+              </figure>
+            </div>
+            <div class="card-content">
+              <h3 class="title is-3">{{ post.title }}</h3>
+              <div class="content">
+                {{ post.summary | safe }}
+              </div>
             </div>
           </div>
         </div>
-      </div>
-    {% endfor %}
+      {% endfor %}
+    </div>
   </div>
-</aside>
+</section>
diff --git a/templates/frontpage/blocks/claim.html b/templates/frontpage/blocks/claim.html
index 2ad05d29..95cb0b9a 100644
--- a/templates/frontpage/blocks/claim.html
+++ b/templates/frontpage/blocks/claim.html
@@ -4,9 +4,7 @@
 >
   <div class="hero-body">
     <div class="container">
-      <div class="columns is-centered is-half mb-6">
-        <h1 class="title is-1">{{ section.extra.headlines.claims }}</h1>
-      </div>
+      <p class="title is-1 has-text-centered">{{ section.extra.headlines.claims }}</p>
       <div class="columns ">
         {% for claim in section.extra.claims %}
         <div class="column is-one-third">
diff --git a/templates/frontpage/blocks/projects.html b/templates/frontpage/blocks/projects.html
index 79438638..29750db9 100644
--- a/templates/frontpage/blocks/projects.html
+++ b/templates/frontpage/blocks/projects.html
@@ -2,9 +2,7 @@
 
 <section class="section">
   <div class="container">
-    <div class="columns is-centered is-half">
-      <h2 class="title is-2">{{ section.extra.headlines.projects }}</h2>
-    </div>
+    <h2 class="title is-2">{{ section.extra.headlines.projects }}</h2>
     <div class="columns">
       {% for project_section_path in projects_section.subsections %}
       {% set project_section = get_section(path=project_section_path) %}
-- 
GitLab