From f197d1dbcbc29bbc257e769fadb78a3d45e95c95 Mon Sep 17 00:00:00 2001 From: Benno Tielen Date: Mon, 3 Feb 2025 14:21:25 +0100 Subject: [PATCH] fix: don't display nav --- src/app/gottesdienst/page.tsx | 26 ++++++++++++++------------ src/app/veranstaltungen/page.tsx | 27 +++++++++++++++------------ 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/src/app/gottesdienst/page.tsx b/src/app/gottesdienst/page.tsx index 185e35c..d4ebf71 100644 --- a/src/app/gottesdienst/page.tsx +++ b/src/app/gottesdienst/page.tsx @@ -77,18 +77,20 @@ export default async function WorshipPage({searchParams}: { -
- -
+ {events.length > 0 && +
+ +
+ } ) } \ No newline at end of file diff --git a/src/app/veranstaltungen/page.tsx b/src/app/veranstaltungen/page.tsx index 61d8644..61af9e3 100644 --- a/src/app/veranstaltungen/page.tsx +++ b/src/app/veranstaltungen/page.tsx @@ -117,18 +117,21 @@ export default async function EventsPage({searchParams}: { -
- -
+ {/*prevents bots indexing till infinity*/} + { events.length > 0 && +
+ +
+ } ) } \ No newline at end of file