From 0473060773a7acb10a6f11e5e22ec13ddf5650ba Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 14 Jun 2025 12:08:48 +0000 Subject: feat: add configuration and default image for blog posts - Introduced a new configuration file to centralize author information and default image settings for blog posts. - Added a default image path in the blog post configuration for improved content presentation. - Updated blog post schema to utilize the new configuration for author details, enhancing structured data representation. --- src/content/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/config.ts') diff --git a/src/content/config.ts b/src/content/config.ts index 916e412..984181c 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -3,13 +3,13 @@ import { defineCollection, z } from "astro:content"; const blog = defineCollection({ type: "content", schema: z.object({ - author: z.string(), basedOn: z.optional(z.string()), dateModified: z.coerce.date(), datePublished: z.coerce.date(), description: z.string(), draft: z.optional(z.boolean()), lang: z.string(), + preview: z.optional(z.string()), title: z.string(), }), }); -- cgit v1.2.3