fix: don't display nav

This commit is contained in:
Benno Tielen 2025-02-03 14:21:25 +01:00
parent bac422effc
commit f197d1dbcb
2 changed files with 29 additions and 24 deletions

View file

@ -77,18 +77,20 @@ export default async function WorshipPage({searchParams}: {
</Container>
</Section>
<Section padding={"small"}>
<NextPrevButtons
prev={{
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
text: "Vorige Woche"
}}
next={{
href: `/gottesdienst?week=${weekNumber(toDate)}`,
text: "Nächste Woche"
}}
/>
</Section>
{events.length > 0 &&
<Section padding={"small"}>
<NextPrevButtons
prev={{
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
text: "Vorige Woche"
}}
next={{
href: `/gottesdienst?week=${weekNumber(toDate)}`,
text: "Nächste Woche"
}}
/>
</Section>
}
</>
)
}

View file

@ -117,18 +117,21 @@ export default async function EventsPage({searchParams}: {
</Container>
</Section>
<Section padding={"small"}>
<NextPrevButtons
prev={{
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
text: "Vorige Woche"
}}
next={{
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
text: "Nächste Woche"
}}
/>
</Section>
{/*prevents bots indexing till infinity*/}
{ events.length > 0 &&
<Section padding={"small"}>
<NextPrevButtons
prev={{
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
text: "Vorige Woche"
}}
next={{
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
text: "Nächste Woche"
}}
/>
</Section>
}
</>
)
}