aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-14 15:08:48 +0300
committerValentin Popov <valentin@popov.link>2025-06-14 15:08:48 +0300
commit0473060773a7acb10a6f11e5e22ec13ddf5650ba (patch)
treeac5f6e309fd5d1562b91c35d8e511df1ac6fd89d /src/content/config.ts
parenta65e9c845543abcda641f51f4dd8cd77ab50b60d (diff)
downloadpopov.link-0473060773a7acb10a6f11e5e22ec13ddf5650ba.tar.xz
popov.link-0473060773a7acb10a6f11e5e22ec13ddf5650ba.zip
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.
Diffstat (limited to 'src/content/config.ts')
-rw-r--r--src/content/config.ts2
1 files changed, 1 insertions, 1 deletions
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(),
}),
});