Mark the draft field as false by default

This commit is contained in:
Maciej Pędzich 2024-09-23 18:33:22 +02:00
parent f821aedf47
commit 3fc4699072
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
title: going global with localhost title: going global with localhost
description: "This is how I've set up my local network and machine to safely expose my personal projects and other services to the outside world" description: "This is how I've set up my local network and machine to safely expose my personal projects and other services to the outside world"
pubDate: 2024-09-23T15:00:00.00Z pubDate: 2024-09-23T15:00:00.00Z
draft: false
categories: categories:
- project homelabtop - project homelabtop
tags: tags:

View File

@ -4,7 +4,7 @@ const blog = defineCollection({
schema: z.object({ schema: z.object({
title: z.string(), title: z.string(),
description: z.string(), description: z.string(),
draft: z.boolean(), draft: z.boolean().default(false),
pubDate: z pubDate: z
.string() .string()
.or(z.date()) .or(z.date())