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:
@@ -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