init stories

This commit is contained in:
2022-08-10 12:00:48 -04:00
parent b739e46fe7
commit 1f699b9b45
4 changed files with 10 additions and 8 deletions

View File

@@ -1,7 +1,16 @@
<script setup lang="ts">
import type { StoryParsedContent } from "@/shared/types";
useTitle("Stories");
const docs = await queryContent<StoryParsedContent>("/stories")
.sort({ date: 1 })
.where({ _draft: false })
.find();
</script>
<template>
<main class="flex grow">hello</main>
<main class="flex grow prose dark:prose-invert">
<h1>Stories</h1>
</main>
</template>