fix: statcard without colours

This commit is contained in:
2022-08-10 10:56:49 -04:00
parent e778c746b8
commit 9484692dfa
4 changed files with 37 additions and 19 deletions

View File

@@ -7,6 +7,9 @@ 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 })