Files
Brummel fb6d09cbcb 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>
2026-05-21 00:10:55 +02:00

44 lines
947 B
HTML

{% 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 }}&nbsp;Uhr</td>
</tr>
{% endfor %}
</table>
<br>
{{ page.content | safe }}
</div>
</section>
{% endblock %}