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 %} + + + + {{ image::render(src=card.image, width=600, alt=card.title) }} + + + {{ card.title }} + {{ card.description }} + + - {% 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 {% for member in section.extra.team_preview %} - - - {{ image::render(src=member.image, width=400, alt=member.name) }} - {{ member.name }} - {{ member.position }} - + + + + {{ image::render(src=member.image, width=400, alt=member.name) }} + + + {{ member.name }} - + {{ member.position }} + + + {% endfor %}
{{ card.description }}
{{ member.position }}