Skip to content

Commit

Permalink
fix: add misc pages back to content
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Feb 12, 2025
1 parent 443c844 commit 865f9bf
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 10 deletions.
6 changes: 5 additions & 1 deletion content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export default defineContentConfig({
schema: z.object({
type: z.string(),
})
})
}),
misc: defineCollection({
type: 'page',
source: '*.md',
}),
}
})
11 changes: 10 additions & 1 deletion pages/cloud-license-agreement.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<template>
<div class="container bd-gutter mt-3 my-md-4 bd-layout">
<article class="bd-main order-1">
<ContentDoc />
<ContentRenderer :value="page" class="bd-markdown" />
</article>
</div>
</template>

<script setup>
const route = useRoute()
const {data: page} = await useAsyncData(
route.path,
() => queryCollection("misc").path(route.path).first()
);
</script>


11 changes: 10 additions & 1 deletion pages/cookie-policy.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<template>
<div class="container bd-gutter mt-3 my-md-4 bd-layout">
<article class="bd-main order-1">
<ContentDoc />
<ContentRenderer :value="page" class="bd-markdown" />
</article>
</div>
</template>

<script setup>
const route = useRoute()
const {data: page} = await useAsyncData(
route.path,
() => queryCollection("misc").path(route.path).first()
);
</script>


11 changes: 10 additions & 1 deletion pages/enterprise-license-agreement.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<template>
<div class="container bd-gutter mt-3 my-md-4 bd-layout">
<article class="bd-main order-1">
<ContentDoc />
<ContentRenderer :value="page" class="bd-markdown" />
</article>
</div>
</template>

<script setup>
const route = useRoute()
const {data: page} = await useAsyncData(
route.path,
() => queryCollection("misc").path(route.path).first()
);
</script>


14 changes: 11 additions & 3 deletions pages/privacy-policy.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<template>
<div class="container mt-3 my-md-4 bd-layout">
<article class="bd-main">
<ContentDoc />
<div class="container bd-gutter mt-3 my-md-4 bd-layout">
<article class="bd-main order-1">
<ContentRenderer :value="page" class="bd-markdown" />
</article>
</div>
</template>

<script setup>
const route = useRoute()
const {data: page} = await useAsyncData(
route.path,
() => queryCollection("misc").path(route.path).first()
);
</script>
15 changes: 12 additions & 3 deletions pages/terms-and-services.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<template>
<div class="container mt-3 my-md-4 bd-layout">
<article class="bd-main">
<ContentDoc />
<div class="container bd-gutter mt-3 my-md-4 bd-layout">
<article class="bd-main order-1">
<ContentRenderer :value="page" class="bd-markdown" />
</article>
</div>
</template>

<script setup>
const route = useRoute()
const {data: page} = await useAsyncData(
route.path,
() => queryCollection("misc").path(route.path).first()
);
</script>

0 comments on commit 865f9bf

Please sign in to comment.