add: article view

View for blog articles
This commit is contained in:
webfussel 2025-06-12 14:11:52 +02:00
parent 579491f216
commit 4104477533
15 changed files with 121 additions and 33 deletions

View file

@ -7,6 +7,14 @@ export default defineContentConfig({
source: 'blog/*.md',
schema: z.object({
date: z.string(),
image: z.string(),
thumbnail: z.string(),
category: z.string(),
tags: z.array(z.string()),
author: z.object({
name: z.string(),
image: z.string(),
}),
excerpt: z.object({
type: z.string(),
children: z.any(),