Banner full-screen

Change working to newer/older
fug update npm modules
This commit is contained in:
Michał Gdula 2024-05-26 20:14:58 +01:00
parent 3d578f2746
commit e45e012977
6 changed files with 350 additions and 356 deletions

View file

@ -3,10 +3,10 @@ import { z, defineCollection } from "astro:content";
const postsCollection = defineCollection({
type: "content",
schema: z.object({
draft: z.boolean().optional(),
draft: z.boolean().optional().default(false),
title: z.string(),
description: z.string(),
pubDate: z.date(),
date: z.string().transform((str) => new Date(str)),
tags: z.array(z.string()),
}),
});
@ -14,7 +14,7 @@ const postsCollection = defineCollection({
const projectsCollection = defineCollection({
type: "content",
schema: z.object({
draft: z.boolean().optional(),
draft: z.boolean().optional().default(false),
title: z.string(),
description: z.string(),
tags: z.array(z.string()),