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

@@ -7,9 +7,6 @@ import type { BlogParsedContent } from "@/shared/types";
dayjs.extend(utc);
dayjs.extend(tz);
// TODO: make queryContent async so it doesn't delay
// execution of the template
const docs = await queryContent<BlogParsedContent>("/blog")
.sort({ date: 1 })
.where({ _draft: false })