feat: some shit
Some checks failed
Deploy to GitHub Pages / build (push) Failing after 7m4s
Deploy to GitHub Pages / deploy (push) Has been skipped

This commit is contained in:
2024-04-03 18:54:51 +02:00
parent 58b74bb801
commit feb9b21ff8
43 changed files with 60 additions and 71 deletions

View File

@ -1,10 +1,13 @@
import { defineCollection, z } from 'astro:content';
const blogCollection = defineCollection({
schema: z.object({
schema: ({ image }) => z.object({
title: z.string(),
date: z.date(),
headerImg: z.string().optional(),
cover: image().refine((img) => img.width >= 720, {
message: "Cover image must be at least 720 pixels wide!",
}).optional(),
coverAlt: z.string().optional(),
description: z.string().optional(),
icon: z.string().optional(),
draft: z.boolean().optional(),