From f03b67e675fd067b183f57bd547aff6311147089 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 00:08:25 +0200 Subject: [PATCH] feat: home page section_title macros and restored markup Restores the markup contracts the theme CSS expects on the home page: - imports section_title macro (st) and calls it on all four sections - news/about/services/team sections get bordered-icon headings via macro - service cards use thumbnail/caption/clearfix structure (2-col grid) - team portraits use figure/figcaption with small for position - gray-bg (not bg-gray) on the services section --- templates/index.html | 60 +++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/templates/index.html b/templates/index.html index 7012423..01a9881 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% import "macros/image.html" as image %} +{% import "macros/section_title.html" as st %} {% block content %} @@ -34,14 +35,18 @@ {# ───────── News (loaded from content/news.md) ───────── #} {% set news_page = get_page(path="news.md") %} -
+
+ {{ st::section_title(title="Aktuelles") }}
- {{ news_page.content | safe }} +
+ {{ news_page.content | safe }} +
{# ───────── About columns ───────── #} -
+
+ {{ st::section_title(title="Willkommen in unserer Praxis am Lienhardplatz") }}
{% for col in section.extra.about_columns %} @@ -52,36 +57,45 @@
{# ───────── Service grid ───────── #} -
+
+ {{ st::section_title(title="Unsere Leistungen") }}
-

Unsere Leistungen

-
- {% for card in section.extra.service_cards %} -
- - {{ image::render(src=card.image, width=600, alt=card.title) }} -

{{ card.title }}

-

{{ card.description }}

-
+ {% for card in section.extra.service_cards %} + {% if loop.index0 % 2 == 0 %}
{% endif %} + - {% endfor %} -
+ {% if loop.index0 % 2 == 1 or loop.last %}
{% endif %} + {% endfor %}
{# ───────── Team preview ───────── #} {% if section.extra.team_preview %} -
+
+ {{ st::section_title(title="Ihr Ärzteteam") }}
-

Unser Team