From fb6d09cbcbf534cb332d4146e03d0083ec093162 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 00:10:55 +0200 Subject: [PATCH] feat: contact page template reads address/hours from config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moves hardcoded address, phone/fax/email, and Sprechzeiten table out of content/contact.md into a dedicated contact.html template that renders them from config.extra — sharing a single source of truth with the footer. Co-Authored-By: Claude Sonnet 4.6 --- content/contact.md | 31 +----------------------------- templates/contact.html | 43 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 templates/contact.html diff --git a/content/contact.md b/content/contact.md index 06d7be5..cd9a029 100644 --- a/content/contact.md +++ b/content/contact.md @@ -1,38 +1,9 @@ +++ title = "Kontakt" -template = "page.html" +template = "contact.html" weight = 60 +++ -## Praxis am Lienhardplatz - -**Hausärztliche Gemeinschaftspraxis** -Kaiserstr. 23 -42329 Wuppertal-Vohwinkel - -**Telefon:** 0202-730738 -**Telefax:** 0202-730017 -**E-Mail:** [info@praxis-am-lienhardplatz.de](mailto:info@praxis-am-lienhardplatz.de) - -## Sprechzeiten - - - - - - - - - - - - - - -
Montag bis Freitag08:00–10:00 Uhr
Montag, Dienstag, Donnerstag15:00–17:00 Uhr
Infekt-Sprechstunde (täglich)10:30–12:00 Uhr
- -
- **Die Praxis ist nach Termin organisiert.** Bei akuten Erkrankungen ist eine Vorstellung in der Praxis jederzeit möglich. ## Ärztlicher Bereitschaftsdienst diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 0000000..155ea5b --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% import "macros/page_title.html" as pt %} + +{% block content %} + +{{ pt::page_title(title=page.title) }} + +
+
+ +

{{ config.extra.practice_name }}

+ +

+ Hausärztliche Gemeinschaftspraxis
+ {{ config.extra.address_street }}
+ {{ config.extra.address_zip_city }} +

+ +

+ Telefon: {{ config.extra.phone }}
+ Telefax: {{ config.extra.fax }}
+ E-Mail: {{ config.extra.email }} +

+ +

Sprechzeiten

+ + + {% for h in config.extra.opening_hours %} + + + + + {% endfor %} +
{{ h.label }}{{ h.time }} Uhr
+ +
+ + {{ page.content | safe }} + +
+
+ +{% endblock %}