Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgazer committed Jan 12, 2025
1 parent cc90bd5 commit 5224e40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions shared/pages/barbuddy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ nl:
</i18n>

<script setup>
const { t, locale } = useT()
const x = useT()
const runtimeConfig = useRuntimeConfig()
const { data: barBuddies } = await useAsyncData(() =>
queryContent('barbuddies')
.where({
sites: { $contains: runtimeConfig.public.domain },
[locale.value]: { $type: 'string' },
[x.locale.value]: { $type: 'string' },
})
.find()
)
Expand All @@ -38,15 +38,15 @@ const listBackgroundClass = runtimeConfig.public.domain === 'outsite.nl' ? 'bg-b
</script>

<template>
<LayoutSmallHeader>{{ t('title') }}</LayoutSmallHeader>
<LayoutSmallHeader>{{ x.t('title') }}</LayoutSmallHeader>

<LayoutPageIntroText>
<p v-text="t('description')" />
<p v-text="x.t('description')" />
</LayoutPageIntroText>

<LayoutStraightSection titleClass="text-brand-450" :contentBackgroundClass="listBackgroundClass">
<template #title>
<Markdown :content="t('bar_buddies_title')" />
<Markdown :content="x.t('bar_buddies_title')" />
</template>

<div class="grid gap-4 md:grid-cols-2">
Expand All @@ -58,7 +58,7 @@ const listBackgroundClass = runtimeConfig.public.domain === 'outsite.nl' ? 'bg-b

<LayoutStraightSection contentBackgroundClass="bg-gray-200" contentClass="pt-12 pb-20">
<h2 class="mx-2 text-center text-2xl font-semibold uppercase tracking-wide">
{{ t('sign_up') }}
{{ x.t('sign_up') }}
</h2>
<div class="mx-auto mt-8 md:w-2/3">
<PagesBarbuddyForm :barBuddies="barBuddies" />
Expand Down

0 comments on commit 5224e40

Please sign in to comment.