From d035bbcd6138e75f32a892affd4e28d445e2aa99 Mon Sep 17 00:00:00 2001 From: Lara Date: Wed, 21 Oct 2026 09:43:36 +0200 Subject: [PATCH] Hide the phone placeholder on contact and imprint An empty kontakt.phone now hides the whole 'Lieber anrufen' block and the phone line in the imprint instead of showing a red placeholder. Setting a number brings both back. Co-Authored-By: Claude Opus 5.5 --- src/pages/impressum.astro | 6 ++---- src/pages/index.astro | 14 +++++++------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/pages/impressum.astro b/src/pages/impressum.astro index 3a68a3a..7ce8fac 100644 --- a/src/pages/impressum.astro +++ b/src/pages/impressum.astro @@ -18,10 +18,8 @@ const { impressum, kontakt } = site;

Kontakt

- E-Mail: {kontakt.email}
- Telefon: {kontakt.phone - ? kontakt.phone - : [Telefonnummer eintragen]} + E-Mail: {kontakt.email} + {kontakt.phone && (<>
Telefon: {kontakt.phone})}

Umsatzsteuer-ID

diff --git a/src/pages/index.astro b/src/pages/index.astro index 464621a..338dc67 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -277,13 +277,13 @@ const findItem = (src: string) =>

{kontakt.title}

-

-

Lieber anrufen

-

- {kontakt.phone || '[Telefonnummer eintragen]'} -

- {kontakt.hours &&

{kontakt.hours}

} -
+ {kontakt.phone && ( +
+

Lieber anrufen

+

{kontakt.phone}

+ {kontakt.hours &&

{kontakt.hours}

} +
+ )}

Oder direkt schreiben