feat: contact page template reads address/hours from config
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 <noreply@anthropic.com>
This commit is contained in:
+1
-30
@@ -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
|
||||
|
||||
<table class="tg">
|
||||
<tr>
|
||||
<td>Montag bis Freitag</td>
|
||||
<td>08:00–10:00 Uhr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Montag, Dienstag, Donnerstag</td>
|
||||
<td>15:00–17:00 Uhr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Infekt-Sprechstunde (täglich)</td>
|
||||
<td>10:30–12:00 Uhr</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
**Die Praxis ist nach Termin organisiert.** Bei akuten Erkrankungen ist eine Vorstellung in der Praxis jederzeit möglich.
|
||||
|
||||
## Ärztlicher Bereitschaftsdienst
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "macros/page_title.html" as pt %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ pt::page_title(title=page.title) }}
|
||||
|
||||
<section class="ptb-100">
|
||||
<div class="container">
|
||||
|
||||
<h2>{{ config.extra.practice_name }}</h2>
|
||||
|
||||
<p>
|
||||
<strong>Hausärztliche Gemeinschaftspraxis</strong><br>
|
||||
{{ config.extra.address_street }}<br>
|
||||
{{ config.extra.address_zip_city }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Telefon:</strong> {{ config.extra.phone }}<br>
|
||||
<strong>Telefax:</strong> {{ config.extra.fax }}<br>
|
||||
<strong>E-Mail:</strong> <a href="mailto:{{ config.extra.email }}">{{ config.extra.email }}</a>
|
||||
</p>
|
||||
|
||||
<h2>Sprechzeiten</h2>
|
||||
|
||||
<table class="tg">
|
||||
{% for h in config.extra.opening_hours %}
|
||||
<tr>
|
||||
<td>{{ h.label }}</td>
|
||||
<td>{{ h.time }} Uhr</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
{{ page.content | safe }}
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user