File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change
1
+ <i18n lang="yaml">
2
+ en :
3
+ monthly_events : Besides the regular opening hours, there are also various [monthly events](/#recurring-events-monthly) at DWH.
4
+ nl :
5
+ monthly_events : Naast de vaste openingstijden zijn er ook diverse [maandelijkse activiteiten](/#recurring-events-monthly) bij DWH.
6
+ </i18n >
7
+
1
8
<script setup>
2
- const { tt } = useT ()
9
+ import Markdown from ' #shared/components/Markdown.vue'
10
+
11
+ const { t , tt } = useT ()
3
12
4
- const openingHours = (await useAsyncData (() => queryContent (' opening_hours' ).findOne ())).data .value .events
13
+ const openingHours = (await useAsyncData (() => queryContent (' opening_hours' ).findOne ())).data .value .events .filter (
14
+ (event ) => ! (' monthly' in event )
15
+ )
5
16
</script >
6
17
7
18
<template >
@@ -26,4 +37,7 @@ const openingHours = (await useAsyncData(() => queryContent('opening_hours').fin
26
37
</div >
27
38
</li >
28
39
</ul >
40
+ <div class =" mt-6 w-80 text-gray-800" >
41
+ <Markdown :content =" t('monthly_events')" />
42
+ </div >
29
43
</template >
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const openingHoursMonthly = openingHours.value.events.filter((o) => 'monthly' in
49
49
</table >
50
50
51
51
<!-- Monthly events -->
52
- <h2 class =" text-5xl font-medium leading-tight text-brand-500 md:mb-6 md:text-center" >
52
+ <h2 id = " recurring-events-monthly " class =" text-5xl font-medium leading-tight text-brand-500 md:mb-6 md:text-center" >
53
53
<Markdown :content =" t('announcement_month')" />
54
54
</h2 >
55
55
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const instagramChannels = [
55
55
<a href =" #join-dwh" class =" block" >
56
56
<ElementsPrimaryButton >{{ t('hero.leftButton') }}</ElementsPrimaryButton >
57
57
</a >
58
- <a href =" #recurring_events " class =" block" >
58
+ <a href =" #recurring-events " class =" block" >
59
59
<ElementsSecondaryButton >{{ t('hero.rightButton') }}</ElementsSecondaryButton >
60
60
</a >
61
61
</div >
@@ -88,7 +88,7 @@ const instagramChannels = [
88
88
<PagesHomeJoinOptions />
89
89
</section >
90
90
91
- <section id =" recurring_events " class =" bg-white" >
91
+ <section id =" recurring-events " class =" bg-white" >
92
92
<PagesHomeRecurringEvents />
93
93
</section >
94
94
You can’t perform that action at this time.
0 commit comments